Javascript: What SEOs need to know

10 345
16.8
Опубликовано 16 марта 2020, 13:00
In this episode of Ask Google Webmasters, John is joined again by Martin Splitt, Developer Advocate at Google, to discuss Javascript & SEO. Stay tuned as they answer questions, such as:

When using Rails Asset Pipeline for caching what status code do we give the old asset? Googlebot crawls these stale assets which we currently have 404'd. Do we 410 instead or keep the old assets alive for a couple months? It's killing our crawl budget? (submitted by @ruth_hearn77) (0:43)

In prerendering can we replace or skip irrelevant elements? I.e. svg bar graphs generated by JS? (submitted by @m_karg) (2:19)

If your site has a chat function that rewrites the title tag for notifications to the visitor, how do you or the app supplier prevent Google from indexing the JS rewritten version of the title tag? (submitted by @GOMaonaigh) (3:18)

In prerendering: can still be JS inside? JS that generates minor content layout changes, but not AJAX requests. (submitted by @m_karg) (4:00)

Will pre-rendering or dynamic rendering ever go away? (short discussion) (5:10)

Check out the JavaScript SEO playlist to deep dive into the SEO for JavaScript best practices → goo.gle/2RmKEG5

Relevant Google documentation:
Fix Search-related JavaScript problems → goo.gle/2VIh8Qs
Implement dynamic rendering → goo.gle/2vm2mDe
More on JavaScript rendering on the web → goo.gle/3cPVejg

Send us your questions on Twitter with the hashtag AskGooglebot and your question might be answered!
Google Search Central on Twitter → goo.gle/3f4Z0a8

Watch more AskGooglebot episodes → goo.gle/2OjWcvS
Subscribe to the Google Search Central Channel → goo.gle/SearchCentral

#AskGooglebot
автотехномузыкадетское