Hello, and welcome to the JavaScript SEO series. I’m Martin Splits, a webmaster developments analyst here at Google. This video collection can explain how Google searches and JavaScript paintings and what that means for search engine marketing.
So, let’s briefly look at how Google crawls and indexes your websites. It starts by using our crawler travel internet web page as every other browser would do; it then passes the content it sees onto the indexing level. That is where the content material is parsed and stored in our index. When hyperlinks are detected, they’re returned to the crawler, and the cycle keeps.
But what if a number of the content material is generated via JavaScript? JavaScript calls for a further level within the cycle, the rendering degree. Googlebot executes JavaScript while rendering the page, but because this rendering level is high-priced, it can’t always be finished immediately. Separating indexing and presenting lets us index content material. This is to be had without JavaScript as rapidly as feasible and to come back lower back and upload content that requires JavaScript later.
The internet is big—honestly, in reality, huge. So Google has over 130 trillion internet pages, and rendering all those pages takes time. Deferring the execution of JavaScript allows us to get most of the content as quickly as feasible simultaneously now, not missing out on the content that does require JavaScript to be run.
But what does that imply in your content material? It means that Googlebot can execute JavaScript on your web page, but it may take longer for that content material to appear or update in Seek. How long it takes for Google to render your pages depends on many factors, and we can’t guarantee anything right here. The rendering level is run as an excellent effort. If getting content material listed quickly is a concern, check out the episodes on extraordinary rendering strategies and JavaScript as the basics episode.
It’s worthwhile bringing up that JavaScript can be quite high-priced. It desires to be downloaded, parsed and finished. Ensuring the users get the content material as quickly as possible and leveraging the modern parsing and rendering of HTML is a beautiful way. It’s appropriate to remember that at the same time as Googlebot can run most JavaScript, different crawlers or social media marketers may not be able to accomplish that yet. There are methods you can use to deal with those user marketers gracefully – we will go into that during one of the Destiny episodes. We will even explore how to make JavaScript primarily based websites work correctly with Google Seek, which includes answering common questions and searching for tools that help your content search engine marketing.
So remember to subscribe to our site owner’s channel to be notified about our new JavaScript SEO films. Thank you very much, and I will spot you quickly.