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

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

问题描述

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

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

我想知道浏览器是否下载了 JS 文件并忽略了它们,或者一起忽略了下载.

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?

我在此处询问了这个问题的后续问题.>

I asked a follow up question to this question here.

推荐答案

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

Some testing (on Ubuntu 10.04) so far yields

  • Opera:不下载(在首选项中禁用 JS)
  • Firefox:不下载(在首选项或 NoScript 中禁用 JS)
  • Google Chrome/Chromium:下载(通过 -disable-javascript 参数禁用 JS)
  • SRWare Iron(Chrome 没有废话):不下载(通过选项"-引擎盖下"-内容设置"-禁用 JSJavaScript"-内容设置"-不允许任何网站运行 JavaScript")
  • IE 8:不下载
  • IE 7:下载
  • 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

将此作为社区维基,因此请随时添加您的结果.

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

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

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