Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Parallelize nested imports #405

Closed
Rich-Harris opened this issue Sep 1, 2018 · 0 comments · Fixed by #1269
Closed

Parallelize nested imports #405

Rich-Harris opened this issue Sep 1, 2018 · 0 comments · Fixed by #1269

Comments

@Rich-Harris
Copy link
Member

On navigating to /foo, the router finds the component in question and discovers that it needs to do import('./foo-xyz123.js'). On loading that module, we may discover that the chunk depends on other chunks, which must then also be loaded.

Since we know the shape of the entire tree at build time, we could figure out all the chunks foo-xyz123.js depends on, and start importing them in the background.

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

Successfully merging a pull request may close this issue.

2 participants