You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
I found such a code to turn off the loading of images, css and fonts, but did not fully understand how to implement it in puppeteer. And is it even possible to do this?
Hello.
I found such a code to turn off the loading of images, css and fonts, but did not fully understand how to implement it in puppeteer. And is it even possible to do this?
The code:
page.on('request', (req) => { if(req.resourceType() == 'stylesheet' || req.resourceType() == 'font' || req.resourceType() == 'image'){ req.abort(); } else { req.continue(); } });
The text was updated successfully, but these errors were encountered: