2 ms·
You mean bad use of JavaScript. Modern websites can prefetch all possible links on the current page you're seeing. Then when you click on any link will render t
by ttty 8y ago
You mean bad use of JavaScript. Modern websites can prefetch all possible links on the current page you're seeing. Then when you click on any link will render that page instantly. Check out some Gatsby blog generator, it's so fast.
- alehander42 8y ago[not op] But what if I don't want them to prefetch it?
- wlll 8y agoNot really, no. > Modern websites can prefetch all possible links on the current page you're seeing. I'm not sure I actually want that to happen. > Then when you click on any link will render that page instantly. Check out some Gatsby blog generator, it's so fast. Most of the time I visit a single page on any given blog, usually found via Google. If I have to load any JS at all the chances are I've downloaded more code than I needed. If the content requires downloading a framework before viewing the content then it just adds to the frustration. It's totally possible to serve HTML, some styles, and some feature-enhancing javscript /fast enough/, and my experience of the evolution of Javascript on web pages over the last 18 years has led to the opinion that Javascript has steadily made my experience of the web slower, more CPU intensive (my CPU fans being spun up by someone's attempt at improving the UI of a web page isn't appreciated), less reliable, less predictable and in general, worse. There is the very real possibility that if you write and release a Javascript based web page then I will enjoy it less than if it was something "simpler".