News for hackers. Stuff that matters.
Re:The Web We Want by sp332 on Friday June 10, 2016 @10:54AM (#11876761)
Maybe we can fix what you don't like about Javascript while keeping the good parts? http://imgur.com/zY6Iu7D
Re:The Web We Want by pessimizer on Friday June 10, 2016 @11:09AM (#11876889)
I don't like it being required in order to browse effectively static pages on the web. The rest is fine.
Re:The Web We Want by sp332 on Friday June 10, 2016 @11:15AM (#11876931)
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.
Re:The Web We Want by pessimizer on Friday June 10, 2016 @11:16AM (#11876938)
For one, you have to execute javascript. For the other, you don't. If you want to do it on the server side, feel free.
Re:The Web We Want by sp332 on Friday June 10, 2016 @11:24AM (#11877007)
But you said you'd be "fine" executing JS for other kinds of pages. What is it about "effectively static" pages that offends you?
Re:The Web We Want by pessimizer on Friday June 10, 2016 @12:56PM (#11877771)
Nothing about static pages offends me.
Re:The Web We Want by ldjb on Friday June 10, 2016 @11:23AM (#11877000)
You 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.

Re:The Web We Want by sp332 on Friday June 10, 2016 @11:28AM (#11877042)
I 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?
Re:The Web We Want by ldjb on Friday June 10, 2016 @11:37AM (#11877114)
I 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.

Re:The Web We Want by TeMPOraL on Friday June 10, 2016 @06:01PM (#11880459)
It's not the problem of JS, it's what is being done with it. It's about bullshit and bloat, about lazy-ass developers, designers showing off and the web being fashion-driven industry. It's about ads and tracking.

The only way to fix it JS-level is to bake a requirement into the standard that the code size limit for JS is 256kb. If a company can't fit their "value-added features" in it, that's their problem.

Re:The Web We Want by pmontra on Friday June 10, 2016 @02:19PM (#11878619)
I 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.
Re:The Web We Want by extra88 on Friday June 10, 2016 @02:19PM (#11878627)
People using Opera Mini are effectively browsing without JS, I'm sure they outnumber the people turning off JS or using NoScript in other browsers.
Re:The Web We Want by Spivak on Friday June 10, 2016 @11:39AM (#11877134)
Compromise and make sure it's served 1st party?
Re:The Web We Want by sp332 on Friday June 10, 2016 @11:47AM (#11877196)
Caches are nice though. Compromise and make sure it's checked against a hash provided by the first party?
Re:The Web We Want by Spivak on Friday June 10, 2016 @12:15PM (#11877449)
As long as you use subresource integrity we have a deal! I know it's currently experimental but having native browser support is much more palatable than using JS to check the hash.
Re:The Web We Want by hueving on Friday June 10, 2016 @12:36PM (#11877623)
Then ensure that it can't communicate with the domain it's loaded from.