Param Singh
Feb 24, 2017 · 1 min read

There’s always a trade off between loading all app code at once giving the user a seamless single page app experience and loading chunks of code on demand. The latter saves a lot of bootstrap time. The initial load time (CRP) gets reduced which means more users can land on your app and you can progressive experience as they use it. The slight delay you are talking about is quite negligible in practice. I haven’t seen any detrimental effects of the same. And for any reason you want to check if a certain module (component) has been loaded or not, you can do that in your component’s componentDidMount lifecycle hook in React or ngOnInit in Angular 2.

    Param Singh

    Written by

    UI Engineer at Swiggy, Ex-Flipkart. JS enthusiast. Cynophilist. GrammerNazi. Environmentalist

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade