为什么不直接用ajax的页面请求加载页面内容? [英] Why not just using ajax for Page Requests to load the page content?
问题描述
许多网页加载所有内容的改变的信息很少。
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.
您可以提供关于你的网站顶部吨阿贾克斯的行为,如果你已经支持标准的服务器端导航的全部内容。看一看渐进增强(SO)和的渐进增强(维基)。
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的页面请求加载页面内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!