In Chrome, any JavaScript files in a service worker cache are bytecode-cached automatically.
This means there is 0 parse + compile cost for them on repeat visits.
https://v8.dev/blog/code-caching-for-devs#use-service-worker-caches …
-
-
You don’t want to parse+compile code your users potentially won’t even use. Only cache the bare minimum, and load+cache the rest on-demand.
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Sounds like it could be a good idea for Electron content JS files(?), given it's an installed environment, assuming you can easily use Service Workers there (haven't tried).
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Does it work without the event.waitUntil() in install? Would that let you cache things that you don't immediately need without blocking?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.