stefanocke / angular-cli-app-with-rollup

Angular application with plugin architecture based completely on rollup and SystemJS 3. Uses AOT and Ivy for dev and prod.
10 stars 3 forks source link

Differential Loading #2

Open stefanocke opened 5 years ago

stefanocke commented 5 years ago

For:

Regarding modules, consider to use https://github.com/guybedford/es-module-shims for import maps support

stefanocke commented 5 years ago

The es-module-shim approach seems currently to be slower than SystemJS. With SystemJS, we get about 220 ms for FMP. With es-module-shim, it is 440 ms. Both on Chrome with already cached bundles.

Between loading of ESM modules and loading of the BLOB urls created by the shim, there are roughly 200 ms. So, it is likely the additional time introduced by the bundle transformation of the shim (or by the BLOB URL overhead itself?).