On this page
What this issue is
Many sites build their pages in the browser with JavaScript. Google crawls the raw HTML first, then runs the page in a headless Chrome browser (this step is called rendering) to see the final content. If a script throws an uncaught error during that run, the code after it stops. Menus, product details, text and links that depend on that code may never appear.
Why it costs you leads or sales
If the crawler sees an empty page, it has nothing to rank. Pages can drop out of results, show weak snippets, or lose the internal links that help other pages get found. AI assistants that read your pages also get little or nothing to quote. Fewer visits to your landing and product pages means fewer leads and orders, and you may not notice until traffic has already fallen.
- Crawler fetches HTMLShell loads with 200 status
- Scripts runUncaught error in main bundle
- Content renderedText, links and products never drawn
- Page indexed and rankedBlank or thin page stored
- Visitor arrivesNo traffic from search or AI
The crawler fetches the page, but a script error stops the content from being built.
Example: weekly organic visits to one page before a faulty release, after it, and after the fix. Numbers are illustrative.
How to check if your site has it
Run URL Inspection in Google Search Console
Paste the page URL, choose Test live URL, then View tested page. Compare the Screenshot and HTML tabs with the real page. Open More info > JavaScript console messages to see errors the renderer hit.
Compare raw and rendered HTML
In the browser, use View source for the raw HTML and the Elements panel for the rendered version. If key text only exists in the second, you depend on JavaScript.
Open the browser console
In Chrome press F12, open Console and reload in an Incognito window with extensions off. Look for red errors that appear before your content.
Throttle the test
In DevTools Network, set a slow connection and disable cache. Errors caused by timing often appear only here.
Check key templates, not one page
Test the home page, a category, a product or service page, a blog post and your main landing pages. An error is often tied to one template.
How to fix it
Fix the cause the console points to. Read the file name and line number in the error, then decide whether that script is yours, a plugin's or a third party's.
Find the culprit plugin or theme
Use the file path in the console error (for example /wp-content/plugins/name/). Temporarily deactivate that plugin on a staging copy and re-test.
Check optimisation settings
If you use a caching or speed plugin, turn off JavaScript minify, combine and delay options, then re-test. These often break script order.
Update or replace
Update the plugin and theme. If the error stays, replace the plugin or contact its developer with the console message.
Identify the source
Check whether the failing file is from your theme (assets/) or an app.
Disable the app embed
In Online Store > Themes > Customize > App embeds, switch the suspect app off and re-test.
Fix or remove leftover code
Uninstalled apps can leave script tags in theme.liquid. Remove those that point to files that no longer exist.
Use Preview mode
Open Preview, load the page and find which tag runs when the console error appears.
Pause the Custom HTML tag
Pause the suspect tag, publish to a test environment and re-check.
Wrap risky code
Add try/catch around custom JavaScript so one failure cannot stop other code.
Review custom code
Check Site settings > Custom code and the page-level custom code for broken scripts.
Remove failing embeds
Disable embeds and third-party scripts one at a time until the error disappears.
Fix the bug at the source
Use source maps to locate the failing line. Add null checks and guard code that assumes data exists.
Isolate non-essential scripts
Load analytics, chat and widgets separately so their errors cannot stop your main bundle.
Serve content in HTML
Where possible use server-side rendering or static generation so the key content does not depend on a script succeeding.
try {
const price = window.productData.price;
document.querySelector('#price').textContent = price;
} catch (e) {
console.error('Price render failed', e);
}With the error
- Console shows an uncaught TypeError
- Rendered HTML has an empty content container
- Navigation links missing
- Snippet is blank or generic
After the fix
- Console is free of fatal errors
- Rendered HTML includes headings, text and links
- URL Inspection screenshot matches the live page
- Page is re-indexed with full content
How to confirm it's fixed
- Console shows no uncaught errors on the page in a fresh Incognito window
- Search Console Test live URL shows a full screenshot
- Rendered HTML in URL Inspection contains your main heading, body text and links
- Other templates still render correctly
- You requested indexing for key pages after the fix
How to prevent it happening again
- Test a staging copy with the console open before every release
- Add new third-party scripts one at a time and re-test
- Wrap non-essential custom JavaScript in try/catch
- Keep plugins, themes and apps updated
- Serve key content in the initial HTML where you can
- Spot-check URL Inspection on key templates after big changes
A script fails and the content never appears.
How FunnelGuard handles this
FunnelGuard detects this issue only partly. When its robot visitor runs your real customer journeys on a schedule, it captures console errors on the journey pages it visits. If a release starts throwing a JavaScript error on one of those pages, you can see it, and a failed step triggers one alert with a screenshot and a likely cause after a re-check from a second region.
To cover the rest by hand, run URL Inspection in Search Console on your key templates after each release, compare raw and rendered HTML, and check the console on pages that are not part of a journey. A free read-only website audit is available, and the Free plan covers 1 site and 2 journeys with daily checks, no card needed.
Questions people ask
Can a JavaScript error stop Google from indexing my page?
Yes. If an uncaught error stops the code that builds your content, Google's renderer may see a blank or partial page and index that. The page can then rank poorly or drop out of results.
How do I see JavaScript errors that Googlebot sees?
Use URL Inspection in Google Search Console, run Test live URL, then open View tested page > More info > JavaScript console messages. Also compare the screenshot and rendered HTML with your live page.
Why does my page look fine in my browser but blank in Google?
Your browser has cache, cookies, extensions and a fast connection that the crawler lacks. A timing-dependent or blocked-resource error can break rendering only for the crawler. Test in Incognito with throttling and use URL Inspection.
Do all console errors hurt SEO?
No. Errors from a failed analytics script or font usually leave content intact. The harmful ones occur in code that builds your main content, links or navigation, or stop a main script bundle from running.
How do I fix an Uncaught TypeError that blocks rendering?
Read the file and line in the console, find who owns that script, and add checks for missing data or remove the faulty script or plugin. Wrap non-essential code in try/catch and re-test with URL Inspection.
Does server-side rendering prevent this problem?
It reduces the risk, because the main content is in the initial HTML and does not rely on a script succeeding. Client-side scripts can still fail, but the crawler already has your text and links.
Can FunnelGuard tell me if Googlebot sees a blank page?
No. FunnelGuard captures console errors on journey pages it visits, which can reveal a new script error early. It does not show Google's rendered view, so you still need Search Console to confirm.
Related issues
- SEO-136Main content only rendered client-side, empty raw HTMLFix guide
- SEO-137Rendering depends on blocked resourcesFix guide
- SEO-144Hydration mismatch or blank page on slow JSFix guide
- SEO-140Title, meta or canonical changed by JS differently from raw HTMLFix guide
- SEO-146Pre-rendering service expired or brokenFix guide
- SEO-141Links rendered by JS without hrefFix guide