3 ms·
Depends on what you're doing. Everyone uses the word "website" like it's just one type of thing. You DON'T need JavaScript for a website that has no interactabi
by chadlavi 4y ago
Depends on what you're doing. Everyone uses the word "website" like it's just one type of thing. You DON'T need JavaScript for a website that has no interactability, like a personal blog with no comments or reactions features. You DO need it for... well, almost anything else you want to let the end user do.
I think a lot of these "you don't need JS" things you see out there are either (a) a sensible reminder that your JS-filled app doesn't have to do EVERYTHING with JavaScript (looking at you, JSS), (b) a contrarian "JS sucks" take, (c) an appeal to use outdated tech like PHP instead, or (d) just a clever way of getting attention on sites like hackernews.
- jfoutz 4y agoIt’s funny you mention HN. With comments and voting and no js.
- Stratoscope 4y agoHow do you think HN handles voting and collapsing threads without a page load? It's this JavaScript that is loaded at the bottom of every page: https://news.ycombinator.com/hn.js https://news.ycombinator.com/hn.js There is a no-JS fallback. If you disable JS with uBlock Origin or whatever, then reload the page and try voting, you will see the page reload. But thread collapsing won't work at all.