Instead of listening load event, I also found that using requestIdleCallBack with max 400ms was good for performance. That way you don't register serviceworker, nor precache, until your main thread is free, in the next 400ms (that should be enought for planning critical, and some lazy loaded, assets downloads).
@saideepakaleti41606 жыл бұрын
Should statement at 11:10 be resource request instead of navigation request?
@Philip_Walton6 жыл бұрын
Ah, yes, sorry! 🤦
@DenisTRUFFAUT6 жыл бұрын
Considering the injectManifest/Revision for index.html, and the fact that the ServiceWorker is max-age 0, is it safe to cacheFirst index.html ?
@ricoterox6 жыл бұрын
"building faster and talk even faster" :P
@iznasen4 жыл бұрын
Thankx #Google you've just changed my career ..to the better!