Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know if React lazy load component is working or not? React js

enter image description hereI am using react lazy load component npm library, How can I know whether its working or not? I have used onContentVisible which is available in react lazy load component library docs. Even Without scrolling, In developer tools, Network tab says 84 requests are sent which is the maximum requests for my web page. How can I figure it out?

like image 756
Harish Kulkarni Avatar asked Sep 08 '25 03:09

Harish Kulkarni


1 Answers

In Chrome dev tools, press command-shift-p (Mac) or control-shift-p (Windows) to open the command menu. Select Show Coverage and click the Reload button and reload your home page, and Chrome will show you what has loaded.

like image 71
VikR Avatar answered Sep 10 '25 01:09

VikR