Documentation updates · Dec 15, 2025 · 2 min read

Noindex and JavaScript: don't count on code to remove it

Google says that when it finds a noindex tag it may not render the page or run its JavaScript, so a script that changes or removes noindex may not work as expected; if you want a page indexed, keep noindex out of the original page code.

What it means for your Maryland business

Noindex is an instruction in a page's code that tells Google to keep the page out of search results. JavaScript is the code that runs in the browser after the page loads. The answer for a Maryland owner: if a page starts with noindex, don't count on a script to remove it later, because Google may not run the script once it sees noindex. This affects businesses whose sites use JavaScript frameworks or app-style builders, and any site that launched from a development copy that was set to stay hidden.

A home care agency in Silver Spring, in Montgomery County, launches a new site. The developer's template ships every page with noindex in the original code and a script that strips it out once content loads, a habit carried over from the testing period. Weeks later, the service pages still aren't in Google. The URL Inspection tool shows the noindex tag, because Google may not have run the script that would have removed it. Taking noindex out of the original code is the fix Google's page points to.

Order of operations is where this goes wrong. Developers treat noindex as a temporary switch that code will flip. Agencies launch sites without removing the hidden setting from the testing phase. Owners check the page in a browser, where the script has already run and everything looks fine, instead of checking what Google sees. The reverse direction works: Google's page shows JavaScript adding noindex to an error page, such as a product that no longer exists.

After any launch or redesign, run your homepage and main service pages through the URL Inspection tool and confirm indexing is allowed. Do it again whenever a developer changes templates, since one template edit can affect every page that uses it.

What to do this week

3 steps. Ticks are saved to Your plan on this device.

Open Your plan

01
Ask your web developer whether any pages you want in Google start with a noindex tag that code later removes.
02
Have them take noindex out of the original page code for every page you want found.
03
Use the URL Inspection tool in Search Console to confirm your key pages can be indexed.

In Google's words

“If you do want the page indexed, don't use a noindex tag in the original page code.”

Google, exact quote · Understand JavaScript SEO Basics · checked against this page 2026-11-28

What Google says

Google says that when it finds a noindex tag it may not render the page or run its JavaScript, so a script that changes or removes noindex may not work as expected; if you want a page indexed, keep noindex out of the original page code. Google's changelog dates this clarification to December 15, 2025, explaining that rendering such pages "is not well defined and might change". JavaScript can still add or change a robots meta tag, such as adding noindex to an error page for a missing product.

Report an error