Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

ReadMe.md

Optimizing our App

1. When and why do we need lazy()?

We need to use lazy loading to optimize and improve performance of our app by loading components only when they are needed.

When do we use lazy() loading?

  • Large application where the initial size becoming too heavy.

  • Rarely used components ex: setting dashbord;

  • Routes pages: where only the page needed when we visit. first need to loads initially.

  • Features heavy apps that needed immediately like chats , admin pannels etc.

  • performance-sensitive envirnoments, especially mobile with slow networks

2. What is suspense ?