Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a browser download JS files if the user has JS disabled?

Does a browser download JS files if the user has JS disabled?

I'm wondering if the browser downloads the JS files and ignores them or ignores the download all together.

Do different browsers act differently in this case?

Edit:

I asked a follow up question to this question here.

like image 212
Bryan Downing Avatar asked Aug 04 '10 01:08

Bryan Downing


People also ask

What happens if JavaScript is disabled in a web browser?

Many Internet Web sites contain JavaScript, a scripting programming language that runs on the web browser to make specific features on the web page functional. If JavaScript has been disabled within your browser, the content or the functionality of the web page can be limited or unavailable.

What happens if JavaScript is enabled?

It makes web pages functional for specific purposes and if disabled for some reason, the content or the functionality of the web page can be limited or unavailable. Here you can find instructions on how to enable (activate) JavaScript in five most commonly used browsers. Javascript is enabled in your web browser.

Does JavaScript have to be downloaded?

Unlike other languages that can be used in a web browser, JavaScript doesn't need to be downloaded and installed.


1 Answers

Some testing (on Ubuntu 10.04) so far yields

  • Opera: doesn't download (disabled JS in preferences)
  • Firefox: doesn't download (disabled JS in preferences or with NoScript)
  • Google Chrome/Chromium: downloads (disabled JS via -disable-javascript parameter)
  • SRWare Iron (Chrome without the nonsense): doesn't download (disabled JS via "Options" - "Under The Hood" - "Content Settings" - "JavaScript" - "Content Settings" - "Do not allow any site to run JavaScript")
  • IE 8: doesn't download
  • IE 7: downloads

Edit: Made this a community wiki, so feel free to add your results.

like image 157
4 revs, 3 users 67% Avatar answered Sep 22 '22 02:09

4 revs, 3 users 67%