如果用户禁用了JS,浏览器是否会下载JS文件? [英] Does a browser download JS files if the user has JS disabled?

查看:108
本文介绍了如果用户禁用了JS,浏览器是否会下载JS文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户禁用了JS,浏览器是否会下载JS文件?



我想知道浏览器是否下载JS文件并忽略它们或忽略下载所有



在这种情况下,不同的浏览器会有所不同吗?



编辑:



我问了这个问题的后续问题这里

解决方案

到目前为止,一些测试(在Ubuntu 10.04上)得到




  • Opera 不下载(在首选项中禁用JS)

  • Firefox 不下载(在首选项或使用NoScript中禁用JS)

  • Google Chrome / Chromium 下载(通过-disable-javascript参数禁用JS)

  • SRWare Iron 废话):不下载(禁用JS通过选项 - 在敞篷下 - 内容设置 - JavaScript - 内容设置 - 不允许任何站点运行JavaScript)

  • IE 8 不下载

  • IE 7 下载



编辑:维基,请随时添加您的结果。


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.

解决方案

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.

这篇关于如果用户禁用了JS,浏览器是否会下载JS文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆