Google’s John Mueller: More About Head Section & JavaScript
Last week we reported on a comment made by John Mueller of Google about the head section of your HTML and why you should keep it clean. John, on Friday, posted a Mastodon thread explaining more about the head section and how search engines interact with it, especially if there is a lot of JavaScript in it.
Here is the content from the thread:
SEO in your head vs too much #JavaScript?
This comes up from time to time, I thought I’d be more elaborate once (it’s not new). Search engines (I only really know Google, YMMV) render HTML pages and there are some settings that need to be found in the head of a page in order to be valid. If you care about these settings, don’t make the brittle, and ideally move those settings to the top of the head.
— John Mueller is mostly not here 🐀 (@JohnMu) January 13, 2023