Can I send network request in custom Audit? #15367
Unanswered
lamysafari
asked this question in
Q&A
Replies: 1 comment 3 replies
-
In your custom audit, you can just use typical Node network utilities. This is reaching outside the framework Lighthouse provides, and isn't something we ever do in our own audits, but for a custom audit it's probably fine. If you want to do it in a gatherer (this makes it possible to serialize results to disk and keeps the auditing portion side-effect free / not reliant on a network), here is some high level guidance:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example , I want to check if every Anchor links in document is valid by checking status code. There is a AnchorElements gather, so I can collect links, but how can I send request? In a custom audit or create a new gather?
Beta Was this translation helpful? Give feedback.
All reactions