Introduction
The three musketeers of Web development are indeed HTML, CSS, and JavaScript. The way you combine these three amigos can ha...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
I saw somewhere that Twitter can load with JavaScript disabled "only for some User Agents".
The importance of use User Agent to Scraping Data
Hugo Sandoval ・ Apr 30 ・ 6 min read
Indeed, making your website require JavaScript does kill many high performance web scraping.
Thank you for the link @Pacharapol, I'll definitely read the article.
Do you have any resource that I can check for this? Or is it in the linked article?
No, I cite it myself.
Disable JavaScript means you cannot use merely
GET
web scraping (e.g. Python requests), and read the HTML output (e.g. Python BeautifulSoup). You will need to resort to more heavyweight method like Selenium or Puppetteer (Chrome engine).Excellent. Thanks for the info.
Interesting but what's the purpose of disabling JavaScript on websites?
It's a personal preference. Some Web users (like me) actually browser with JavaScript disabled in their browser. We tend to load scripts only on site we trust.
Turning off JavaScript on sites like YouTube, ThePracticalDEV and the likes was just for research purposes and to see what they'll be like with JavaScript disabled.
To protect yourself against XSS exploit. You enable JavaScript only on websites you trust. Like a firewall.
Definitely a good security practice to use noscript in my eyes. Once you get used to it there's no need to go back to js on by default.
It's satisfying to see so many adverts, Google analytics and other crud getting blocked by noscript. I get a good sense of the website by how many third party scripts it runs and what they are called.
One major pain point is cloudfront type hosting. In particular the AWS console will load entirely necessary content from literally dozens of different cloudfront domains that all need to be trusted individually... Every AWS service can use a bunch of different domains :( you can always just disable noscript for a tab though when you hit annoying niche cases like that though :)
Noscript is great, highly recommend it!
Hahaha I love how you threw DEV in there right at the end
As you can see even these web giants, and their top sites on the web do not work without javascript. So turning off javascript is a silly thing to do just because that is your personal preference or you afraid of some mostly non-existent threat. If you this type then just do not use the web then!!!
If you turn js off then you need to live with the fact that you can't use the majority of sites!
I remember times when some developers started trying to make it look trendy and cool and also smart to create sites that can be used with js on and off too. This stupidity only means doubling or tripling the time of development and the budget needed nothing else, which of course for those people is not clear as they are insane, and still some things are simply not possible without js anymore. It is the silliest idea...
That time I had to deal with this issue and face the fact that some people wanted me to create sites like that. It was very annoying and lot of wasting time of arguing on needles stupid things. Trying to make things work without js is not possible anymore or result in a very poor website.
I am not really a fan of javascript, but still... People just have to live with the fact that it is needed nowadays! So stop coming up with silly ideas and nonsense...
If we follow this logic we can try to use a computer with the CPU removed to see if it still works without it... Removing the CPU by the way also protect you from malware and viruses LOL
Experimenting is a good thing, but you should still keep your sanity!
JavaScript has too much power
I already commented the similar problems before: dev.to/bravemaster619/comment/mok2
Stackoverflow can be loaded without any Javascript.
There is notice at the top of the page that reads: Stack Overflow works best with JavaScript enabled.
How about DuckDuckGo? :)
When JavaScript is enabled the search results for DuckDuckGo are displayed with infinite scrolling, if there is no JavaScript, you get paginated results with
Next
andPrevious
buttons.For the Home Page, the difference is really noticeable.
DuckDuckGo with JavaScript
DuckDuckGo without JavaScript
P.S. If you prefer the second but do have JS enabled, use start.duckduckgo.com/ instead. :)
I just noticed that the layout of start.duckduckgo.com is similar to the layout when JavaScript is disabled.
Thank you.
Interesting. I just built a site and I think I will need to revisit this because it does rely on JavaScript for a few key components.
Very interesting
The beautiful and useful css.gg ❤️