Between December 15 and December 18, 2025, Google's documentation log recorded three changes to its JavaScript SEO basics page. Taken together, they warn against a common pattern: serving one set of robots and canonical signals in the raw HTML and expecting JavaScript to change them later.
The three entries
December 15, 2025, "Clarifying noindex and JavaScript." The log's summary says Google's handling of noindex on JavaScript pages is not well defined, and that you should avoid putting noindex in the original code if you want the page indexed.
December 17, 2025, "Clarifying canonicalization best practices for JavaScript." The log advises setting the canonical URL consistently in the original HTML when you use JavaScript.
December 18, 2025, "Clarifying JavaScript execution on non-200 HTTP status codes." A note explains that pages with non-200 status codes may not be sent to rendering.
What the page says today
Reading the current text of the page, the specifics are these.
On rendering: Googlebot queues pages with a 200 status for rendering unless a robots meta tag or header tells Google not to index the page. Rendering may take a few seconds or longer. All 200 pages are sent to the rendering queue whether or not they contain JavaScript. If the status is not 200, such as a 404 error page, rendering might be skipped.
On robots meta tags: you can use JavaScript to add or change a robots meta tag, for example to add noindex when an API call returns no content. But when Google encounters a noindex tag it may skip rendering and JavaScript execution. That means using JavaScript to change or remove the tag from noindex may not work as expected. The page's advice is explicit: if you do want the page indexed, don't use a noindex tag in the original page code.
On canonicals: you can use JavaScript to set the canonical URL, but shouldn't change it to something different from what the original HTML specifies. The best approach is to set it in HTML. If you cannot, set it with JavaScript and leave it out of the original HTML. The page also warns that multiple or conflicting rel="canonical" tags may produce unexpected results.
The failure mode, illustrated
Consider a single-page application that ships this default in its HTML shell:
<meta name="robots" content="noindex">
and removes it from a script once data loads, so that real pages become indexable. Based on the documentation, that design is fragile: if Google reads the noindex in the initial response and stops there, the script that would have removed it may never run. The page is then treated as noindex, perhaps for reasons nobody can see in the rendered DOM.
The same logic applies in reverse for soft 404 handling. The page recommends, for client-side rendered error states, either redirecting to a URL that returns a real 404 or adding a noindex tag with JavaScript. Adding noindex late is a supported way to keep error views out of the index, which is different from relying on late removal of noindex.
What to do
- Make indexable pages indexable at the server. Ship no noindex in the HTML shell for pages meant to rank.
- Put canonicals in the original HTML. If JavaScript must set one, make it equal to the one in the HTML or leave the HTML without one.
- Return real status codes. Do not serve error views with a success status and rely on scripts to explain. See our explainer on soft 404s.
- Do not depend on rendering for error pages. Non-200 responses may skip it, so any instruction that matters should be in the response itself.
- Verify in two views. Compare the raw HTML with the rendered HTML in the URL Inspection tool. Differences in robots or canonical signals are your risk list.
Where this fits
Server-side or pre-rendered output removes most of these questions, a point Google's page itself makes. If you cannot do that, treat any robots or canonical instruction as something that should be correct before JavaScript runs. For the full set of directives and their interactions, see noindex vs robots.txt vs 410, X-Robots-Tag and canonical tags.
Our read
These are documentation clarifications, and the underlying behavior is described as not well defined, which is itself the message: do not build a design that depends on it. The safest position for anyone who needs predictable indexing is simple. Decide indexability on the server, say it in the first response, and let JavaScript add features, not change verdicts.