哪种浏览器功能可以很好地区分能够很好地处理 js 的移动浏览器和不能很好地处理 js 的移动浏览器?
我一直在 Android 和 iPhone 上测试我们的移动网站,感觉我有一个适合这些浏览器的良好工作网站。问题是我刚拿到黑莓 5,结果却非常糟糕。我们正在使用 jquery,js 需要 20 多秒才能加载并使其自身定向。
我的想法是,我们最好在 BlackBerry 5 或更低版本的浏览器上删除或严格限制 js 的使用,这让我走上了浏览器检测的道路。
我在这个项目中使用了 Modernizr,我想知道是否有一个特定的功能或一组功能我们可以检测到,然后我可以将浏览器分为“优秀”、“良好”、“中等”和“差”组,如下面列出了 Quirks 模式浏览器列表。或者,我会选择一个答案,将其分为优秀和其他。
I have been testing our mobile site on an android and iphone and feel that I have a good working website for those browsers. The problem is that I just got my hands on a blackberry 5 and the results are pretty appallingly bad. We are using jquery and it takes 20+ seconds for the js to load get itself oriented.
My thought is that we probably are just better off removing or severely curtailing our use of js on a browser like BlackBerry 5 or lower which takes me down the path of browser detection.
I have used modernizr for this project and I'm wondering if there is a particular feature or set of features that we could detect and that would then allow me to divide the browser into groups of Excellent, Good, Medium, and Poor as found in the Quirks Mode Browser listing found below. Alternatively, I would settle for an answer divides it into excellent and everything else.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基于此处提供的数据。
http://www.w3.org/2010/01/results-wctmb2
看来,浏览器有效区分高级别 js 支持和低级别 js 支持的两个特性是对 localStorage 的支持和对 canvas 的支持。
每个 50% 或以下的浏览器都不支持 localStorage 或 Canvas,而每个高于 50% 的浏览器(Firefox 和 Fennec 的几个版本除外)都支持两者。
Based on the data presented here.
http://www.w3.org/2010/01/results-wctmb2
It appears that two features of browsers that effectively separate high levels of js support from low levels of js support are support for localStorage and support for canvas.
Every browser at or below 50% fails to support either localStorage or Canvas and every browser above 50% (except for a couple versions of Firefox and Fennec) support both.