module-federation-examples icon indicating copy to clipboard operation
module-federation-examples copied to clipboard

Add ability to reduce requests waterfall for host-ui

Open sowtame opened this issue 1 year ago • 3 comments

image with the new announcement of mf-manifest, can the initialChunks field be added?

sowtame avatar May 02 '24 13:05 sowtame

whats initialChunks field mean?

ScriptedAlchemy avatar May 03 '24 20:05 ScriptedAlchemy

by the initialChunks field, I mean that this field will contain the names of the chunks necessary for rendering the initial page. The screenshot shows that we firstly load the index.js file, and then all the other modules.

1 this can be solved by removing the wrapper that imports bootstrap.js file (but that's not possible) 2 and the option with the initialChunks field, which will contain the necessary chunks, reducing the waterfall of requests

i have a little example of initial assets plugin here

with waterfall image

with parallel requests image

sowtame avatar May 04 '24 12:05 sowtame

You can use the MF-manifest.json

ScriptedAlchemy avatar May 06 '24 01:05 ScriptedAlchemy