/modules-link-preload

Testing link rel=preload for module scripts in browsers

Primary LanguageJavaScript

Link preload test case

Only since creating this test case did I found out the preload story is suprisingle undetermined for modules, which is incredibly worrying given preloading of deep trees is absolutely necessary for performance. Reference - whatwg/fetch#486.

In this test case we load a deep module tree (999 modules), with a preload on the last module using:

<link rel="preload" as="script" href="lib/module999.js" />

Running the test

Run a local server and open test.html.

Results