3 ms·
A trillion npm packages will for sure add a couple seconds of delay to your website loading speed.
by seddin 8y ago
A trillion npm packages will for sure add a couple seconds of delay to your website loading speed.
- acheron 8y agoHey, when you need to pad a string, what else are you supposed to do?
- coldtea 8y agoYeah, pad it ourselves? What are we, savages?
- blotter_paper 8y agoThat depends on whether or not they are required for first render. Whatever scripts you attach will only be requested after the HTML is delivered, unless they're embedded (most aren't). Isomorphic rendering and rehydration can deliver and render just as fast as a static page, because it is a static page... at first. The problem with modern web page load times isn't the number npm packages bundled for the project, it's that developers/companies, through incompetence, laziness, or a desire to make sure that would-be NoScript users have to run their tracking code before being allowed to view content, don't always render basic content and functionality before requesting that bundle. The only exceptions to this I can think of are scripts that require you to run them before first render, like PayPal buttons that want to inspect everything, make sure they aren't in an iframe, etc.
- jtms 8y ago`npm install the-entire-universe`