5 ms·
Deactivate javascript: Done
by VoxPelli 7y ago
Deactivate javascript: Done
- progval 7y agoAnd then you can't see the article, because its CSS hides the text and Javascript un-hides it; and people call you an extremist.
- JohnFen 7y agoYes, I do that already, but that doesn't remove the code in the browser. Also, I'd really love a JS interpreter that was restrictive enough that I could leave it on without exposing me to this stuff.
- VoxPelli 7y agoNot just an interpreter – unless there's a standardized subset that one can look for as a web developer then one can't really adopt to it (through either graceful degradation or progressive enhancement). Same reason why eg. Noscript addons creates havoc at times. Web sites expects a certain baseline and when it's not there, they expect that javascript will be disabled altogether and <noscript>-tags to get executed, but just disabling some code prohibits that fallback, making it less usable than fully disabling js.
- JohnFen 7y agoGood point. I guess there's no real hope, then. I'll take the runner-up position in that case -- I want a browser that has no support for Javascript and the like at all. In the meantime, I'll just continue to leave it disabled.
- VoxPelli 7y agoClosest I can think of is efforts like https://jerryscript.net/ https://jerryscript.net/ and https://duktape.org/ https://duktape.org/ – but the challenge isn't in the language itself really, but in the web API:s that gets added to it. Eg. Node.js doesn't have WebUSB either :)
- weare138 7y agoOnly problem with that is it breaks so many sites now. Most major sites I've tested without JS recently are borked.
- michannne 7y agoAnd that is how it should be. All parties need to align on how the future of the Web will look. If most users want a site with fancy features, that's what developers will make, and that is what businesses will prioritize
- JohnFen 7y ago> And that is how it should be. Well, I don't think that's how it should be, but that's certainly how it's turning out. How it should be is that websites degrade gracefully, and remain usable (if more limited in terms of geewhizzery) without client-side scripting.
- imtringued 7y agoAnd how do you expect that to happen? HTML hasn't been designed for that at all. Nowadays even extremely minor features require usage of JavaScript. For example a simple auto complete field that loads things from the database as you type. There is no way "graceful" way to implement this without JavaScript. There are some ugly ways that offer an extremely poor user experience (drop downs with 100000 elements) but those require additional developer resources on top of whatever basic feature you're building. You will also have to add a huge amount of forms and intermediate pages because of the limitations of HTML that will only be used by 1% of your user base and they will hate the experience no matter how much effort you put into it. No, the ship has sailed. Just activate JavaScript and block ads/trackers.
- JohnFen 7y ago> HTML hasn't been designed for that at all. It absolutely has. That's a fundamental design goal for HTML. > For example a simple auto complete field that loads things from the database as you type. There is no way "graceful" way to implement this without JavaScript. True, so if the user doesn't have JS enabled, you don't do that. Omitting that functionality doesn't remove the ability to make use of the website. You're arguing that making proper websites is too expensive to justify. That's your call, of course, but that's a different argument than "it can't be done". > Just activate JavaScript and block ads/trackers. No, that's too risky. What I'll do instead is not use the website.
- chris37879 7y agoAnd then large swathes of the web stop working. Usually you're better off, but you're screwed if a site you need uses javascript to render its content.