发布于 2024-09-17 08:03:48 字数 115 浏览 3 评论 0原文

我继续读到的很多关于优雅降级的内容都适用于不使用 JavaScript 的浏览器。但我自己的经验表明,在没有 JS 和 CSS 支持的情况下期望在互联网上获得正常的体验已经不再合理。如今,需要投入多少精力来应对降解?

A lot of what I continue to read about graceful degradation applies to browsers that don't use JavaScript. But my own experience shows that it's no longer reasonable to expect a normal experience on the Internet without JS and CSS support. How much energy is it responsible to devote to degradation these days?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

苍白女子 2024-09-24 08:03:53

这实际上取决于您的用户群。如果你的大多数用户是午餐时间的公司访客,并且关闭了 js,那么你应该降级。如果您有大量盲人用户群,那么您最好避免使用丰富的界面。

另外,不要忘记搜索引擎优化和允许机器人爬行您的网站。例如,如果您使用选项卡式布局,并且选项卡内容仅通过 javascript ajax 调用检索,那么可以安全地假设爬虫不会看到它。

That really depends on your user base. If most of your users are lunch-time corporate visitor with js turned off then you should degrade. If you have a significant blind user base then you're best avoiding the rich interface.

Also don't forget about SEO and allowing bots to crawl through your site. For exmaple, if you're using a tabbed layout and the tab contents are only retrieved by a javascript ajax call then it's safe to assume that a crawler will not see it.

夜声 2024-09-24 08:03:52

从列表中单独查看这篇文章。它谈论渐进增强而不是优雅降级。它不会降低没有特定技术的用户或有可访问性问题的用户的体验,而是侧重于从基础知识 (html) 开始,并通过利用用户可用的技术来改善用户体验。

通过渐进增强,您将永远不需要 noscript 标记,因为您不假设用户一开始就启用了 javascript。

Check out this article from a list apart. It talks about progressive enhancement instead of graceful degradation. Instead of degrading the experience for users without a particular technology or users with accessibility issues, it focuses on starting with the basics (html) and progressing the user experience by utilizing what technologies the user has available.

With progressive enhancement you'll never need a noscript tag, since you don't assume the user has javascript enabled to begin with.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文