TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Too much JavaScript

5 pointsby igvadaimonabout 11 years ago

4 comments

malandrewabout 11 years ago
<p><pre><code> &quot;The amount of users with javascript disabled in their browsers is around 1% or even less. Who are those people? I always imagined them like some old-school security- obsessed maniacs.&quot; </code></pre> I&#x27;m one of those people and I write lots of JavaScript for a living at a company that writes mostly JavaScript. The truth is that the overwhelming majority of sites don&#x27;t use JavaScript for anything useful. In fact a lot is actively not in your interests. 90% of the time most of the JS I encounter in SafeScript is metrics collection and adware. I also block javascript because I like to have a lot of tabs open and 100 tabs running javascript can easily send my fans into overdrive and kill my battery life. For the most part, I usually just whitelist domains I trust.<p>One day I wouldn&#x27;t mind sitting down to write a browser plugin that is a lot smarter about executing JavaScript. I&#x27;m doing a lot with AST parsing with esprima these days so hopefully that experience will provide some insights over time. The truth is that the browser is supposed to be a user-agent and most need a lot more work still to act in the best interests of the users using them.<p>I especially would really love to build a LittleSnitch for browsers that overrides the browser&#x27;s XHR, WebSockets and other networking features to disable timeouts and give you the option of whitelisting GETs, PUTS and POSTS to certain routes.<p>Furthermore, I think it would also be nice to be able to figure out what parts of a page touched certain elements and decide to block the javascript that manipulated that part of the page.
theandrewbaileyabout 11 years ago
If it can be done without Javascript, it&#x27;s probably better to do without it. Not only for compatibility, but it will be faster, too. Serving an empty div with a lot of Javascript to AJAX&#x2F;JSON things in doesn&#x27;t make everything better.
mschuster91about 11 years ago
The real question is, why do people still disable Javascript? (And, why do browsers offer this option)
评论 #7472433 未加载
评论 #7472276 未加载
mantrax3about 11 years ago
1) You were wondering why people disable JS.<p>2) You were making &quot;THIS FACE&quot; at <i>one of them</i>.<p>3) You <i>didn&#x27;t ask him why</i> did he disable JS.<p>4) You&#x27;re about to remake your site based on conclusions drawn by <i>a sample of one</i>.<p>Well, god damn it dude. That&#x27;s not how thinking works!
评论 #7479321 未加载