4 ms·
What's the difference between having a web server look up an article in a DB and serve it to you, and having a web page's JS look up that article in a DB and pu
by sp332 10y ago
What's the difference between having a web server look up an article in a DB and serve it to you, and having a web page's JS look up that article in a DB and pull it to your browser? It seems like that would be the least offensive use of JS.
- pessimizer 10y agoFor one, you have to execute javascript. For the other, you don't. If you want to do it on the server side, feel free.
- sp332 10y agoBut you said you'd be "fine" executing JS for other kinds of pages. What is it about "effectively static" pages that offends you?
- pessimizer 10y agoNothing about static pages offends me.
- ldjb 10y agoYou can absolutely use JavaScript to pull an article into the browser. But if the user doesn't have JavaScript, they should still be able to navigate the site the old-fashioned way. It doesn't have to be one way or the other.
- sp332 10y agoI think the vast majority of people browsing without JS are people who have manually disabled it. Which goes back to my first question: Can we make a JS that's acceptable to those people, so they will just enable it?
- ldjb 10y agoI regularly browse the web using Lynx, a text-only browser that doesn't even have a setting to enable JavaScript. There should almost always be fallbacks for people who don't have JavaScript, but if you are going to use JavaScript, it would at least help if any nontrivial code were free, such that it isn't blocked by the LibreJS add-on. At the very least, the user experience with JavaScript enabled should not be worse than with JavaScript disabled.
- Spivak 10y agoCompromise and make sure it's served 1st party?
- sp332 10y agoCaches are nice though. Compromise and make sure it's checked against a hash provided by the first party?
- pmontra 10y agoI don't know if there are stats about disabling JS in the preferences of the browser, but I'm using NoScript. That's a finer grained control. Absolutely no JS would mean almost no web nowadays. Maybe wikipedia works.
- extra88 10y agoPeople using Opera Mini are effectively browsing without JS, I'm sure they outnumber the people turning off JS or using NoScript in other browsers.