Why not just using ajax for Page Requests to load the page content?(为什么不直接使用 ajax for Page Requests 来加载页面内容?)
问题描述
许多网页加载其所有内容以更改很少的信息.
Many web pages load all of their content to change very little information.
现在我想知道为什么开发人员不应该只对主页请求使用ajax?
Now I would like to know why shouldn't the developers just use ajax for the main page requests?
在我自己的网页上,我想仅使用 ajax 来开发我网页上的主要请求,但我不知道这种方法有什么具体的缺点.
On my own webpage, I would like to develop the main requests on my webpage with just ajax but I don't know any specific cons with this approach.
有没有人知道为什么有人不应该如此频繁地使用 ajax?
Does anybody have an idea why someone shouldn't use ajax so much?
推荐答案
搜索引擎、爬虫/蜘蛛、没有 javascript 的浏览器、屏幕阅读器和其他内容消费者不会很满意.
Search engines, crawlers/spiders, browsers with no javascript, screen readers and other consumers of the content will not be very happy with it.
如果您已经支持完整内容的标准服务器端导航,则可以在网站顶部提供大量 ajax 行为.看看 渐进增强 (SO) 和 渐进增强 (wiki).
You can provide tons of ajax behavior on top of you website if you already support standard server side navigation for the full content. Have a look at progressive enhancement (SO) and progressive enhancement (wiki).
这篇关于为什么不直接使用 ajax for Page Requests 来加载页面内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么不直接使用 ajax for Page Requests 来加载页面内容?
基础教程推荐
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何替换eregi() 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
