问题原文
原帖链接 · Siyah · CC BY-SA 4.0
Suppose I have an error in my console on a couple of pages, like the following:
(index):239 Uncaught ReferenceError: incom is not defined
at (index):239
at dispatch (jquery.min.js?ver=1.8.3:2)
at u (jquery.min.js?ver=1.8.3:2)
Does this, in any way, affect SEO or can I safely ignore it?
已采纳解答
原帖链接 · Anuvesh · CC BY-SA 4.0
If any error or improper implementation of Javascript(in any form) is affecting the crawlability or preventing crawlers from fetching content, it can affect SEO in a drastic way.
If this error affects any of the processes, the crawlers may not favour your website over others.
Even after fixing errors, there should be some things to be kept in mind while implementing Javascript.
Do not use Javascript’s onclick events as a replacement for internal linking. Instead, use regular anchor tags within the HTML or the DOM.
Unblock Javascript. When Javascript is blocked, search engines won't receive your site’s full experience. This means that the search engine could not see what the end-users are seeing on your site, and can even lead to search engines interpreting it as cloaking.
Use Fetch as Google to see how are the pages read by robots.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
