Service Worker scripts are very different from traditional JavaScript that you add on to your page. They run on a separate thread and do not block the rendering or any other task that takes place on the main thread.
Our service worker script is extremely light weight. The actual heavy lifting of optimizing your assets happens on our servers. The job of the service worker script is just to collect minimal information about the user’s environment and route the request to Dexecure instead of your origin server.
Installing Dexecure via a Service Worker