Skip to content

Instantly share code, notes, and snippets.

Last active Jan 20, 2022
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