Closed
Description
How can I implement lazy loading?
Would this require (create-react-app-impossiblish) webpack configuration modifications?
As my app is growing (.js > 1mB), the initial load takes longer, especially on mobile connections. So lazy loading of code chunks would provide a great performance boost.
Activity
gaearon commentedon Oct 18, 2016
You can use
require.ensure()
because we use webpack under the hood.When we switch to webpack 2, you can use
System.import
instead.sandervanhooft commentedon Oct 18, 2016
That's great, thanks! :)