3 ms·
What reasons would you disable JS other than to block ads and tracking? If it’s just those things, why would the developers want to accommodate those people? T
by baron816 6y ago
What reasons would you disable JS other than to block ads and tracking?
If it’s just those things, why would the developers want to accommodate those people? That would result in lost revenue.
- saagarjha 6y agoPerhaps you’d rather not give websites the ability to execute arbitrary code on your computer?
- ray_z 6y agosecurity, add to that pages load faster without JS or with JS disabled.
- Bnshsysjab 6y agoNot everything is about revenue. If it was, JS based advertisement revenue isn’t the only source.
- Tade0 6y agoScreen readers. They generally work better with JS disabled.
- ryanbrunner 6y agoWe require all of our code to work without Javascript (although in the most basic sense, it's perfectly fine to use Javascript to enhance an experience), and there's advantages even if you ignore "people who turn off Javascript in their browser": - Certain problems, like ensuring that browser navigation works properly, either disappear or are massively reduced. - We wrestle with bundle sizes a lot less, since a majority of our code ends up being genuinely server-rendered only - there's little to no advantage to doing additional client side rendering of a straightforward form or other mostly static content. - Integration tests can be faster and more straightforward to write if you don't need to worry about JS. Of course, they're not full end-to-end if you're not testing JS, but for secondary flows they can suffice for the "good enough" category, and often (but not always) failures in your client JS will allow the SSR code to keep running fine as a backup.