showcase: lazy load ExampleViewerModule
after login
#3650
Labels
Projects
Milestone
ExampleViewerModule
after login
#3650
I'm submitting a...
Current behavior
Due to #2953, first navigation to a page under "Stark UI", "Stark Core", "Stark RBAC"... takes a while since the
ExampleViewerModule
is downloaded just before opening the page.The bundle of 10MB is downloaded at that time.
Expected behavior
The
ExampleViewerModule
module should be lazyloaded before accessing the pages, since we are sure that these pages will be accessed.We could load the module once the home page has been loaded.
Minimal reproduction of the problem with instructions
Start the showcase, open the DevTools and access to a page in "Stark UI", check the Network tab.
What is the motivation / use case for changing the behavior?
Fix UX after improvement thanks to the split of the stark-ui chunks.
Environment
The text was updated successfully, but these errors were encountered: