Closed guybedford closed 2 years ago
There was a bug here resulting in incorrect inclusions. This is fixed in https://github.com/jspm/generator/pull/134.
By default htmlGenerate
will now only do static preloads. Setting preload = 'all'
will then do dynamic import preloading.
Currently preload will include preloads for dynamic imports which can result in a slower page since everything is being preloaded even what is being requested lazily.
We should reconsider this default, or more clearly have variations of the preload option to optionally include dynamic import preloading.