From the course: React: Server-Side Rendering

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: What is the purpose of code splitting?

Solution: What is the purpose of code splitting? - React.js Tutorial

From the course: React: Server-Side Rendering

Start my 1-month free trial

Solution: What is the purpose of code splitting?

(upbeat music) - You typically start using tools like Next.js and code splitting when your application scales to a point where you're trying to find ways to improve loading and performance. And that is exactly the purpose of code splitting. It splits your code into various bundles and components to be loaded as needed, preventing your application from loading as one big chunk of code. This way, let's say you only need a specific section of the application loaded, only this section and not the entire list of components is rendered.

Contents