Skip to content

Instantly share code, notes, and snippets.

@Neo42
Last active Jan 20, 2022
Embed
What would you like to do?
When to use code splitting (dynamic import) in webpack?
  1. Heavy library but not needed initially (threejs)
  2. Temporal components (that come and go or are conditionally loaded): tooltips, model, notification, dialog, page scrolling
  3. Routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment