难道一个浏览器的下载JS文件,如果用户已禁用JS? [英] Does a browser download JS files if the user has JS disabled?

查看:147
本文介绍了难道一个浏览器的下载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?

编辑:

我问了一个跟进的问题这个问题<一href=\"http://stackoverflow.com/questions/3411232/alternative-method-to-include-js-files\">here.

I asked a follow up question to this question here.

推荐答案

一些测试(在Ubuntu 10.04),至今产量

Some testing (on Ubuntu 10.04) so far yields


  • 歌剧 不下载(适用于preferences禁用JS)

  • 火狐 不下载(适用于preferences或禁用的NoScript JS)

  • 谷歌浏览器/铬 下载(通过-disable-JavaScript参数禁用JS)

  • SRWare铁(无铬废话):不下载(通过选项禁用JS - 引擎盖下 - 内容设置 - JavaScript的 - 内容设置 - 不允许任何网站运行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天全站免登陆