许多网页加载其所有内容以更改很少的信息.
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 来加载页面内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!