Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉
javascript
performance
dom
analytics
web-worker
3rd-party
webworker
lighthouse
3rdparty
lighthouse-score
core-web-vitals
-
Updated
Nov 29, 2021 - TypeScript
Some prior art here:
https://github.com/puppeteer/examples/blob/master/verify_sw_caching.js
https://michaljanaszek.com/blog/test-website-performance-with-puppeteer/#cacheAndServiceWorker