大网数据广告活动
网站运营与故障问答

Is loading the article content using jQuery & AJAX bad for SEO?

· 52CE 我爱测

I am loading the content of main article using jQuery . Is it effective for SEO? Is it bad practice? For example I have a page URL example.com/ariticle?seid=14 Here when the page loads, I fetch the content using AJAX and jQuery. …

问题原文

原帖链接 · Abilash Erikson · CC BY-SA 3.0

I am loading the content of main article using jQuery . Is it effective for SEO? Is it bad practice?

For example I have a page URL example.com/ariticle?seid=14

Here when the page loads, I fetch the content using AJAX and jQuery. When the user gets the page, the common template is the first thing to load. Inside this template <body>, I have a <div> and it's class is main-article. During the document.ready function I get the selected news article id frome the URL (seid=14) & then fetch its corresponding content from the database and show it inside the class main-article.

If doing this is bad for SEO, how can I make my individual posts more SEO friendly?

Google has an AJAX crawling scheme, but it is deprecated now.

已采纳解答

原帖链接 · Ivo van der Veeken · CC BY-SA 3.0

How to achieve SEO for XHTML pages which load data in DOM using a JQuery-AJAX service calls?

You can load any data with Ajax call. For example, this site changes the title of all pages (it could be a meta tag too) with JavaScript and Google indexes them correctly. This site uses the "escaped URL fragments" method to be indexed.

Edit: if you click through in the link you posted, you'll find the reason it's deprecated and on that page is this:

Times have changed. Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and understand your web pages like modern browsers

Edit2: AJAX isn't bad for SEO, but I'd consider rewriting those links. /article/id/title-of-the article or something similar is a lot better than ariticle?seid=14.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。