Worker Preloading Techniques

Preloading a Web Worker used to be fairly difficult. Each of the pages below demonstrate a potential technique for doing so, with varying degrees of success.

To see the effect of preloading on these demos:
  1. Open the demo, and open the DevTools Network tab
  2. Ensure the "Disable Cache" checkbox is unchecked
  3. Right-click the request table area and choose "Clear Browser Cache"
  4. Reload the page and take a look at the network waterfall

For Module Workers:

For Classic Workers: