Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Support bundle splitting without full prepare in browser #13

Open
ganemone opened this issue Nov 11, 2017 · 0 comments
Open

Support bundle splitting without full prepare in browser #13

ganemone opened this issue Nov 11, 2017 · 0 comments

Comments

@ganemone
Copy link
Contributor

Doing a full prepare in the browser before rendering is only required due to the current way we are doing bundle split components. To get around this, we can keep track of a singleton mapping of chunkId to load functions. On pageload, we run all the load functions for chunkIds that were rendered on the server.

We can make a similar optimization for server side renders to avoid unnecessary async microtasks by loading all the promises up front.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant