Introduction

Learn why we need to do performance optimization for our application and how we can achieve it by splitting the routes of the application.

Lazy loading routes and components

When users visit our web application, they only need the code responsible for rendering components for the route being visited. They don’t need our whole application immediately. Very large applications can weigh quite a lot, and every additional kilobyte means more information is sent to the user and then parsed and processed by a browser.

Thus, instead of sending a whole application immediately, we can lazy loadLazy ...