Block Unneeded Browser Resources with Puppeteer Request Interception
Speed up Puppeteer navigation by aborting images, stylesheets, and fonts before they download.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Speed up Puppeteer navigation by aborting images, stylesheets, and fonts before they download.
Stop relying on simulated DOMs. Learn how to use Karma to execute JavaScript tests in real browser instances to eliminate cross-browser bugs and optimize CI pipelines.
Learn how to use Puppeteer's Request Interception to block unnecessary assets, reduce bandwidth costs, and speed up headless browser execution.
Use Puppeteer's request interception to abort images, fonts, and trackers, cutting scrape time and bandwidth — with a worked example, mocking via request.respond(), and the failure modes to watch for.
Timezone Emulation and Date Conversion Puppeteer provides the page.emulateTimezone(ianaId) method to override the perceived IANA timezone for a page context. This ensures that Date evaluations, such as toLocaleString() and getTimezoneOffset() , return values consistent with the specified region. There is uncertainty regarding the lifecycle of this override w