Google Recommends Using JavaScript “Responsibly”


Google’s Martin Splitt, a webmaster trends analyst, recommends reducing reliance on JavaScript in order to provide the best experience for users.

In addition, “responsible” use of JavaScript can also help ensure that a site’s content is not lagging behind in Google’s search index.

These points were brought up during the latest SEO Mythbusting video which focuses on web performance.

Joined by Ada Rose Cannon of Samsung, Splitt discussed a number of topics about web performance as it relates to SEO.

The discussion naturally led to the topic of JavaScript, as overuse of JS can seriously drag down the performance of a website.

Here are some highlights from the discussion.

JavaScript sites may be lagging behind

Overuse of JavaScript can be especially detrimental to sites that publish fresh content on a daily basis.

As a result of Google’s two-pass indexing process, fresh content on a JS-heavy site may not be indexed in search results for up to a week after it has been published.

When crawling a JS-heavy web page, Googlebot will first render the non-JS elements like HTML and CSS.

The page then gets put into a queue and Googlebot will render and index the rest of the content when more resources are available.

Use dynamic rendering to avoid a delay in indexing

One way to get around the problem of indexing lag, other than using hybrid rendering or server-side rendering, is to utilize dynamic rendering.

Dynamic rendering provides Googlebot with a static rendered version of a page, which will help it get indexed faster.

Rely mostly on HTML and CSS, if possible

When it comes to crawling, indexing, and overall user experience its best to rely primarily on HTML and CSS.

Splitt says HTML and CSS are more “resilient” than JavaScript because they degrade more gracefully.

For further information, see the full video below:





Source link

?
WP Twitter Auto Publish Powered By : XYZScripts.com