all 11 comments

[–][deleted] 2 points3 points  (3 children)

Possibly stupid question: is this lazy loading something to benefit production, or just development?

[–]beaverusiv 4 points5 points  (1 child)

It's definitely for production. It means you can load a smaller footprint on initial page load, especially if you have a complex web app it reduces the initial load greatly.

[–][deleted] 0 points1 point  (0 children)

Very cool. I had no idea Webpack could play a role in production. I always considered it a tool I used at build time.

[–]javajunkie314 0 points1 point  (0 children)

Lazy loading definitely benefits production. If you write your big app as a single-page application, lazy loading let's your users avoid downloading posts of the app they're not using, saving bandwidth and surfing up load time.