Documentation updates · Dec 18, 2025 · 2 min read

Google may skip rendering JavaScript on 404 error pages

Google renders JavaScript for every page that returns a 200 status code, whether or not the page uses scripts, unless a robots meta tag or header blocks indexing.

What it means for your Maryland business

Yes, Google renders JavaScript, but only reliably on pages that return a normal 200 status code, the server's signal that a page loaded fine. On pages that return an error code like 404, Google may never run the scripts. This matters for Maryland businesses whose sites are built as JavaScript apps, where content is drawn in the browser: booking platforms, online menus and ordering systems, real estate listing sites, custom-built storefronts and many startup sites. Ask whoever built your site whether pages arrive as full HTML or are assembled by scripts in the browser.

A property management company in Silver Spring runs a listings app. When a unit rents, its page shows a friendly message built by JavaScript but the server still answers 200, so Google may treat it as a soft 404: an error page that claims to be fine. Fixed properly, the app redirects removed listings to a page that returns a real 404, or adds a noindex tag. The reverse problem also happens: a listing page that wrongly returns 404 while scripts fill in the details may not be rendered, so the listing may not appear in Google.

Wrong status codes are the core problem, as when pages depend on scripts to show content while the server sends an error code. Returning 200 for pages that are gone is the reverse mistake, and blocking script files in robots.txt stops Google from rendering them. Google also recommends server-side rendering or pre-rendering, which sends finished HTML and speeds the site for visitors too. Ask your developer to look at the rendered HTML of key pages with Search Console's URL Inspection tool, and review the Pages report for not-found and server errors.

What to do this week

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

Open Your plan

01
Ask your web developer to confirm that the pages you want in Google return a 200 status code.
02
Check the Pages report in Search Console for important pages listed as not found or with server errors, and have them fixed.

In Google's words

“If the HTTP status code is non-200 (for example, on error pages with 404 status code), rendering might be skipped.”

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

What Google says

Google renders JavaScript for every page that returns a 200 status code, whether or not the page uses scripts, unless a robots meta tag or header blocks indexing. For pages with other status codes, such as 404 error pages, rendering might be skipped. Google still recommends server-side or pre-rendering, and for single-page apps suggests a JavaScript redirect to a real 404 URL or a noindex tag to avoid soft 404s.

Report an error