AJAX 加载是否会损害搜索引擎优化?

发布于 2024-10-22 02:44:16 字数 371 浏览 2 评论 0原文

我正在为自己建立一个博客。因为它是相关的,所以这里是链接:http://www.codetunnel.com。正如您所看到的,页面通过 AJAX 加载,这样我就可以做一些时尚的加载效果等等。它实际上是一个网络终端,接受命令和参数并通过 ajax 处理它们;我的 URL 结构根据传入的 URL 执行这些命令,以便不同的页面可以具有唯一的 URL,即使它们是通过 ajax 加载的。我过去做过类似的项目,但从来没有太关心针对搜索引擎优化网站,直到这个项目。

通过 AJAX 加载的博客文章是否会损害其被网络爬虫找到的能力?我想会的,但在决定如何继续前进之前,我希望得到您的意见。

谢谢你!

I am building a blog for myself. Because it is relevant, here is the link: http://www.codetunnel.com. As you can see the page loads via AJAX so that I can do some stylish loading effects, among other things. It's actually a web-terminal that accepts commands and arguments and processes them via ajax; my URL structure executes these commands based on the URL passed in so that different pages can have unique URLs even though they are loaded via ajax. I've done past projects like this but have never cared much about optimizing the site for search engines, until this one.

Would a blog post being loaded via AJAX hurt its ability to be found by web crawlers? I'm assuming it would but I want your opinions before I decide how to move forward.

Thank you!

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

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

发布评论

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

评论(4

帅气尐潴 2024-10-29 02:44:16

这取决于。如果您使用不显眼的 javascript 和渐进增强,这意味着在您的页面中您有链接:

@Html.ActionLink("foo bar", "foo")

这将在某些外部 js 文件中进行 AJAX 化,网络爬虫将像所有正常链接一样跟踪这些链接,并且如果服务器返回内容,则该内容将被索引为您网站的所有其他内容。但如果 url 是使用 javascript 构建的,则不会,它不会被索引,因为爬虫通常不执行 javascript。我还建议您也提供站点地图。

It depends. If you use unobtrusive javascript and progressive enhancement meaning that in your page you have links:

@Html.ActionLink("foo bar", "foo")

which would be AJAXified in some external js file, web crawlers will follow those links as all normal links and if the server returns content this content will be indexed just as all other content of your site. But if the url is built with javascript, then, no, it won't be indexed as crawlers normally do not execute javascript. I would also recommend you providing a sitemap as well.

任性一次 2024-10-29 02:44:16

我想说是的,据我所知,搜索引擎不会看到加载的内容,只会看到初始页面加载的内容。

I would say yes it would as from what I know the search engine wont see the loaded content, just the content from the initial page load.

゛时过境迁 2024-10-29 02:44:16

除非您使用某种渐进式增强(请参阅演示文稿),否则主要问题是搜索引擎将仅加载和索引初始内容。

Unless you use some kind of progressive enhancement (see this presentation), the main problem is that search engines will load and index only initial stuff.

酷炫老祖宗 2024-10-29 02:44:16

根据我在搜索引擎优化方面的经验,是的,这会损害网站的排名。但现在Google提出了一个建议,通过它你可以使用Ajax来加载页面,同时它不会损害你的SEO工作。

As per my experience in search engine optimization yes, it will hurt rankings of the website. But now Google has proposed a proposal through which you can use Ajax to load the pages and at the same time it won't hurt your SEO efforts.

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