DEV Community

Discussion on: What is the next big thing in frontend development?

Collapse
 
ben profile image
Ben Halpern

I'm not sure whether I love or hate fully automatic code splitting.

I definitely see the edge being more and more powerful and custom, along with service workers.

Where code runs will be more and more important in this sense.

Collapse
 
stereobooster profile image
stereobooster

With suspense it will be seamless, you can split at any point and it will work. And bundler will decide how to pack modules together. And you can use github.com/guess-js/guess, to predict what to prefetch. It's like a magic

Collapse
 
ben profile image
Ben Halpern

Wow, that is incredibly cool.

Collapse
 
sergiodxa profile image
Sergio Daniel Xalambrí

fully automatic code splitting

That sounds a lot like [Require.js]requirejs.org), if you are loading all async then you will made the initial load slower.

But definitely having code splitting easier to do is awesome, if you can just add a single line and create a new splitting point that's is definitely useful.