{
    "title": "Prerender",
    "description": "Prerender loads the next page in a hidden tab so it shows at once on click. In SEO it also means serving bots a ready-made HTML copy.",
    "url": "https://ursy.com/wiki/prerender/",
    "canonical": "https://ursy.com/wiki/prerender/",
    "markdown": "https://ursy.com/wiki/prerender/index.md",
    "json": "https://ursy.com/wiki/prerender/index.json",
    "published": "2026-11-25T01:48:08+00:00",
    "updated": "2026-11-25T01:48:08+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/prerender/",
    "headings": [
        {
            "level": 2,
            "text": "What is prerendering in the browser?",
            "id": "what-is-prerendering-in-the-browser",
            "url": "https://ursy.com/wiki/prerender/#what-is-prerendering-in-the-browser"
        },
        {
            "level": 2,
            "text": "What happened to rel=prerender?",
            "id": "what-happened-to-relprerender",
            "url": "https://ursy.com/wiki/prerender/#what-happened-to-relprerender"
        },
        {
            "level": 2,
            "text": "How does the browser decide when?",
            "id": "how-does-the-browser-decide-when",
            "url": "https://ursy.com/wiki/prerender/#how-does-the-browser-decide-when"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/prerender/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for analytics?",
            "id": "why-does-it-matter-for-analytics",
            "url": "https://ursy.com/wiki/prerender/#why-does-it-matter-for-analytics"
        },
        {
            "level": 2,
            "text": "What is prerendering in SEO?",
            "id": "what-is-prerendering-in-seo",
            "url": "https://ursy.com/wiki/prerender/#what-is-prerendering-in-seo"
        },
        {
            "level": 2,
            "text": "Why does that matter for AI answers?",
            "id": "why-does-that-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/prerender/#why-does-that-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/prerender/#a-worked-example"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/prerender/#common-mistakes"
        },
        {
            "level": 2,
            "text": "How do I check it?",
            "id": "how-do-i-check-it",
            "url": "https://ursy.com/wiki/prerender/#how-do-i-check-it"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/prerender/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/prerender/#sources"
        }
    ],
    "links": [
        {
            "text": "SEO",
            "url": "https://ursy.com/wiki/seo-search-engine-optimisation/",
            "internal": true
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "Prefetch",
            "url": "https://ursy.com/wiki/prefetch/",
            "internal": true
        },
        {
            "text": "Speculation Rules API page",
            "url": "https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API",
            "internal": false
        },
        {
            "text": "iframe",
            "url": "https://ursy.com/wiki/iframe/",
            "internal": true
        },
        {
            "text": "SEO audit",
            "url": "https://ursy.com/seo-audit/",
            "internal": true
        },
        {
            "text": "prerendering pages",
            "url": "https://developer.chrome.com/docs/web-platform/prerender-pages",
            "internal": false
        },
        {
            "text": "Preload",
            "url": "https://ursy.com/wiki/preload/",
            "internal": true
        },
        {
            "text": "Largest Contentful Paint",
            "url": "https://ursy.com/wiki/largest-contentful-paint/",
            "internal": true
        },
        {
            "text": "Core Web Vitals",
            "url": "https://ursy.com/wiki/core-web-vitals/",
            "internal": true
        },
        {
            "text": "Googlebot",
            "url": "https://ursy.com/wiki/googlebot/",
            "internal": true
        },
        {
            "text": "Google Analytics",
            "url": "https://ursy.com/wiki/google-analytics-4/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "HTTP headers",
            "url": "https://ursy.com/wiki/http-headers/",
            "internal": true
        },
        {
            "text": "server logs",
            "url": "https://ursy.com/wiki/server-logs/",
            "internal": true
        },
        {
            "text": "pageview",
            "url": "https://ursy.com/wiki/pageview/",
            "internal": true
        },
        {
            "text": "tracking checker",
            "url": "https://ursy.com/tracking-checker/",
            "internal": true
        },
        {
            "text": "single-page application",
            "url": "https://ursy.com/wiki/single-page-application/",
            "internal": true
        },
        {
            "text": "client-side rendering",
            "url": "https://ursy.com/wiki/client-side-rendering/",
            "internal": true
        },
        {
            "text": "dynamic rendering",
            "url": "https://ursy.com/wiki/dynamic-rendering/",
            "internal": true
        },
        {
            "text": "dynamic rendering page",
            "url": "https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering",
            "internal": false
        },
        {
            "text": "server-side rendering",
            "url": "https://ursy.com/wiki/server-side-rendering/",
            "internal": true
        },
        {
            "text": "cloaking",
            "url": "https://ursy.com/wiki/cloaking/",
            "internal": true
        },
        {
            "text": "AI crawler",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "JavaScript SEO checker",
            "url": "https://ursy.com/javascript-seo-checker/",
            "internal": true
        },
        {
            "text": "AI readiness checker",
            "url": "https://ursy.com/ai-readiness-checker/",
            "internal": true
        },
        {
            "text": "JavaScript rendering check",
            "url": "https://ursy.com/pro/javascript-rendering-check/",
            "internal": true
        },
        {
            "text": "technical SEO for AI search",
            "url": "https://ursy.com/wiki/technical-seo-for-ai-search/",
            "internal": true
        },
        {
            "text": "web analytics",
            "url": "https://ursy.com/wiki/web-analytics/",
            "internal": true
        },
        {
            "text": "impressions",
            "url": "https://ursy.com/wiki/impressions/",
            "internal": true
        },
        {
            "text": "HTTP header checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "real user speed",
            "url": "https://ursy.com/pro/real-user-speed/",
            "internal": true
        },
        {
            "text": "Rendering",
            "url": "https://ursy.com/wiki/rendering/",
            "internal": true
        },
        {
            "text": "Client-side vs server-side rendering",
            "url": "https://ursy.com/wiki/client-side-vs-server-side-rendering/",
            "internal": true
        },
        {
            "text": "JavaScript SEO",
            "url": "https://ursy.com/wiki/javascript-seo/",
            "internal": true
        },
        {
            "text": "Page speed",
            "url": "https://ursy.com/wiki/page-speed/",
            "internal": true
        }
    ],
    "words": 1052,
    "text": "Prerender means building a web page before anyone asks for it: in a browser, it loads and runs the next page in a hidden tab so it appears at once on click; in SEO, it also means serving bots a ready-made HTML copy of a JavaScript page. The two meanings share a name but solve different problems. This page covers both. What is prerendering in the browser? It is the strongest of the speed hints. Prefetch only downloads the next page. Prerender goes further. MDN’s Speculation Rules API page says it fetches, renders and loads the page into an invisible tab, including all subresources and all JavaScript. When the visitor clicks, the hidden tab is swapped in. MDN says it costs about as much as rendering an iframe. You ask for it with a block of JSON in the page: <script type=\"speculationrules\"> {\"prerender\": [{\"where\": {\"and\": [ {\"href_matches\": \"/*\"}, {\"not\": {\"href_matches\": \"/logout\"}} ]}, \"eagerness\": \"moderate\"}]} </script> That tells the browser it may prerender any same-site link except sign-out, once the visitor shows interest. Before adding rules, run our free SEO audit to see the wider problems on the page. What happened to rel=prerender? The old <link rel=\"prerender\"> tag was Chrome-only. MDN says it was never standardised and Chrome is sunsetting it. Chrome’s guide to prerendering pages explains that the tag was moved to NoState Prefetch, which fetches files but does not run JavaScript or render the page. Full prerendering came back through speculation rules. If you still have the old tag in a theme, it no longer does what its name says. How does the browser decide when? Chrome’s guide lists 4 eagerness levels: Eagerness Starts when immediate As soon as the rules are seen eager Desktop: about 10 ms of hovering. Mobile: shortly after the link enters the screen moderate Desktop: 200 ms of hovering, or on press. Mobile: more complex viewport rules conservative On pointer or touch down Chrome caps the work. With moderate or eager, it keeps 2 prerenders at a time and drops the oldest. It skips speculation when Save-Data is on, when battery is low with energy saver on, when memory is short, when the “Preload pages” setting is off and in background tabs. Both MDN and Chrome call prerendering a hint and a progressive enhancement: the page must work without it. Limits on where: MDN says prerendering is same-origin by default. Same-site, cross-origin pages need the target to send Supports-Loading-Mode: credentialed-prerender. Cross-site prerendering is not possible. Chrome lists support in Chrome and Edge from version 121, not in Firefox, and Safari only behind a flag. Why does it matter for search? A prerendered page can show almost instantly, which helps Largest Contentful Paint and the other Core Web Vitals for visitors who arrive by clicking around your site. It does not change how Googlebot crawls. The gain is for people, so it shows in real-visitor speed data. Why does it matter for analytics? A hidden page that runs its scripts could log a visit nobody made. Chrome’s guide says Google Analytics, Google Publisher Tag and AdSense wait until the page is shown, but other tools may not. Three signals help: document.prerendering is true while the page is hidden. The prerenderingchange event fires when the visitor actually opens it. activationStart in navigation timing is above 0 for a page that was prerendered. Your server sees Sec-Purpose: prefetch;prerender on the request, one of the HTTP headers it sends. If your server logs count every request as a pageview, filter on that header. Our tracking checker lists the tags on a page so you know which ones to test. What is prerendering in SEO? The older SEO meaning is about JavaScript sites. A single-page application built with client-side rendering sends an almost empty HTML page and fills it with JavaScript. Some sites used a prerender service to send crawlers a finished HTML copy instead. Google calls this dynamic rendering. Its dynamic rendering page calls it a stopgap rather than a lasting fix, and does not recommend it. Its advice is to move to server-side rendering, static pages built ahead of time, or hydration. Google also says dynamic rendering is not generally cloaking if the content is similar. Serving crawlers a different topic from people can be. Why does that matter for AI answers? An AI crawler that fetches the HTML but does not run your scripts sees only what the server sent. If your words only appear after JavaScript runs, that bot may see an empty page. Rendering on the server, or building static HTML, gives every reader the same content without the bot-only copy Google warns about. Check with our JavaScript SEO checker and AI readiness checker, or the JavaScript rendering check (Pro). See technical SEO for AI search. A worked example One UK online shop finds that most visitors to a product list click the first few products. It adds speculation rules with moderate eagerness for product links only, and excludes basket, sign-out and language links. MDN lists add to cart, sign-out and language switch links as unsafe, because a hidden load would change something on the server. It then checks the web analytics: GA4 waits for activation, but a second tag fires on load, so the team wraps that tag in a prerenderingchange check. Common mistakes Prerendering pages with side effects. Sign-out, add to basket, one-time codes, ad conversions. Using immediate on many links. It wastes memory and data. Chrome advises prerendering only when a click is highly likely. Counting hidden loads as visits. Inflated pageviews and ad impressions. Keeping a bot-only prerender service long after the framework could render on the server. Blocking the page with no-store or a non-2xx reply. MDN says any non-2xx response stops speculation. How do I check it? Chrome DevTools shows each speculation rule on the page and whether it ran. After a click, run performance.getEntriesByType('navigation')[0].activationStart in the console. Above 0 means it was prerendered. Read the request headers with our HTTP header checker. Watch real speed over time with real user speed (Pro). Related words Rendering Client-side vs server-side rendering JavaScript SEO Page speed Sources MDN: Speculation Rules API, checked 25 November 2026 Chrome for Developers: Prerender pages in Chrome, checked 25 November 2026 Google Search Central: Dynamic rendering as a workaround, checked 25 November 2026 Updated 25 November 2026 by URSY.",
    "source": "https://ursy.com/wiki/prerender/"
}