3 ms·
I would say that JavaScript can also make <some> aspects of your site faster than pure HTML CSS. Why? Because most sites are not just a single landing page --
by threatofrain 10y ago
I would say that JavaScript can also make <some> aspects of your site faster than pure HTML CSS.
Why? Because most sites are not just a single landing page -- they have links, or tabs, or new pages, and each request could take 0.2 seconds.
So instead of requesting a new page at the time of clicking on a link, and then re-loading your entire page, you just fetch information predictively and mutate the DOM to give a feeling of <instant>, faster than even an HTML CSS page behind a CDN.