4

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?

7
  • Are you using any node module to achieve React Lazy load component or React.lazy? Commented Nov 21, 2018 at 12:58
  • Yes I am using - React lazy load component Commented Nov 21, 2018 at 13:00
  • In order to figure out if the lazy component, you need to invoke that component. Commented Nov 21, 2018 at 13:06
  • Invoke?How? I have read docs and used as per docs. onContentVisible is working. Couldn't exactly know whether is working or not? Commented Nov 21, 2018 at 13:20
  • 1
    It seems that you are not using official React.lazy reactjs.org/docs/code-splitting.html#reactlazy. I think that you are using react-lazy-load npm module because it supports onContentVisible. Kindly add more information about what you are using and add minimal reproducible example Commented Nov 21, 2018 at 16:14

1 Answer 1

8

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.