在没有JavaScript的情况下优雅降级仍然有用吗? [英] Is graceful degradation in the absence of JavaScript still useful?

查看:84
本文介绍了在没有JavaScript的情况下优雅降级仍然有用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使移动浏览器有JavaScript,是否真的有必要考虑潜在的无脚本用户?

When even mobile browsers have JavaScript, is it really necessary to consider potential script-free users?

推荐答案

是的。您的网页不仅仅是由人们使用:它们被搜索引擎,爬虫和屏幕分析器使用。大多数自动工具不支持Javascript,基本上没有人会生成UI事件或查看深层嵌套的AJAX数据。你希望有一个简单的静态HTML后备,如果没有别的话,那么你的网页就会被搜索引擎很好地编入索引。

Yes. Your web pages aren't just consumed by people: they're consumed by search engines, and crawlers, and screenscrapers. Most of those automatic tools don't support Javascript, and essentially none are going to generate UI events or look at deeply nested AJAX data. You want to have a simple static HTML fallback, if nothing else then so that your web pages are well indexed by the search engines.

忘掉那些禁用Javascript的疯子;想到机器人!

Forget the crazies who disable Javascript; think of the robots!

这篇关于在没有JavaScript的情况下优雅降级仍然有用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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