Short answer: Google can run JavaScript, but later, in a queue, and most other bots don't run it at all. So an app that builds its pages in the browser starts out as an almost empty HTML file. Lovable now handles most of this: apps made since May 13, 2026 render on the server, and older ones get pre-rendered pages for verified crawlers like Google's. If your Lovable site still isn't on Google, it's usually something else: the site is new, every page has the same title, there's no sitemap, the text loads late, or the code is hosted somewhere else. Check what Google really got with URL Inspection, then use the fix for your stack below.
Everything about Google here comes from Google's own Search Central docs, and everything about Lovable from Lovable's own docs, both checked on December 1, 2026.
Two kinds of first HTML
When a browser or a bot asks for a page, the server sends back one HTML file. A bot that doesn't run JavaScript reads that file and nothing else.
A client-rendered app, like a React + Vite app, sends something close to this:
<!doctype html>
<html lang="en">
<head>
<title>My App</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/assets/index.js"></script>
</body>
</html>
Your words, headings and links only appear once that script runs. A server-rendered page puts them in the file itself. Our own site is built with Next.js, which renders on the server. I fetched one of our blog posts with curl, which never runs JavaScript, and the HTML already held about 1,650 words: the whole post plus the menus.
Who runs your JavaScript, and who doesn't
| Who asks for the page | Runs JavaScript? | What it reads on a client-rendered app |
|---|---|---|
| Googlebot | Yes, later: "a headless Chromium renders the page and executes the JavaScript" once "Google's resources allow" | The full page, after a wait |
| AI crawlers (ChatGPT, Claude, Perplexity) | No, in Vercel's study from December 2024 | The empty file |
| Link previews (WhatsApp, LinkedIn, Slack, X) | "Most of them do not run JavaScript," says Lovable | Only the tags in the first HTML |
Google's docs say it plainly: "not all bots can run JavaScript." Even Google's wait has no fixed length: "The page may stay on this queue for a few seconds, but it can take longer than that." So Google still says "server-side or pre-rendering is still a great idea". Vercel's study found that "none of the major AI crawlers currently render JavaScript", OpenAI's, Anthropic's and Perplexity's included. Gemini was the exception, since it uses Google's crawler.
What Lovable's own docs say
Lovable changed a lot this year, so trust its current docs over old forum threads. In its own words:
- New apps: "Apps created from May 13, 2026 (June 22, 2026 on Enterprise plans) use TanStack Start with server-side rendering." And: "Every request returns fully rendered HTML, for humans and crawlers."
- Older apps: "Older React + Vite apps use on-request pre-rendering on deployed public URLs." "When a verified crawler arrives, Lovable renders the page on the fly and returns the resulting HTML."
- Who is verified: search engines "such as Google and Bing", "AI search crawlers such as those of ChatGPT, Perplexity, Claude, and Gemini", and "social-preview bots, and verified SEO tools". Everyone else gets the app: "Unverified bots and link checkers see the regular single-page app".
- The catch: "Content that loads with the page is usually included. Content that loads late may be missing."
- The basics: "Lovable creates a
robots.txtwith every new project, but not always a sitemap, and the starting metadata is generic."
Two things follow (my reading, not Lovable's words). First, if you test an older Lovable app with curl or with JavaScript off, you see the empty file even though Google gets the full page, so trust URL Inspection more. Second, the docs describe pre-rendering for "Lovable-hosted projects". If you host the code on Netlify, Vercel or Cloudflare instead, nothing pre-renders it for you.
Why a Lovable site still doesn't show
With rendering handled, these are the usual reasons. The order is mine.
- It's new. Even after you ask Google to crawl a page, "Crawling can take anywhere from a few days to a few weeks." And "Indexing isn't guaranteed; not every page that Google processes will be indexed."
- Google can't find it. "Only publicly published apps can appear in search results." With no sitemap, no links and no Search Console, Google has little to go on.
- Every page looks the same. With generic starting metadata, every route shares one title and description. Lovable's own review has a finding called "Duplicate titles across routes".
- The text arrives late. Text your app fetches from a database after the page loads may miss the pre-rendered version.
- Every address answers "OK". An app shows its own "not found" screen, but the server still sends a 200 status: a soft 404. Google's fix: redirect to a URL that returns a real 404, or "Add a
<meta name="robots" content="noindex">to error pages using JavaScript."
Check it yourself
- URL Inspection. Add your site to Search Console (Lovable "can verify your site and submit your sitemap for you in chat"). Paste a page's address, click Test live URL, then View crawled page: you get the HTML Google got, its JavaScript console output and a screenshot ("A screenshot of the rendered page is available only in a live test."). If the screenshot shows your page and your text is in the HTML, Google can read it.
- View source. In your browser, open View page source (Ctrl+U). That's the first HTML. If your text isn't there, bots that don't run JavaScript don't see it. (On an older Lovable app, remember that verified crawlers get a different version.)
- Turn JavaScript off. In Chrome, open DevTools, press Control+Shift+P (Command+Shift+P on a Mac), start typing
javascript, pick Disable JavaScript and reload. "JavaScript will remain disabled in this tab so long as you have DevTools open." - A link preview. Lovable's tip: "To check the pre-rendered output yourself, use Google's URL Inspection tool or a social platform's link debugger."
- Lovable's review. In the editor, open More → Analytics and select SEO & AI. It checks your sitemap,
robots.txt, metadata, canonical tags and more, and Try to fix "asks Lovable to apply the changes." "Running the review is included on all plans."
The fix for your stack
| Your app | What to do |
|---|---|
| Lovable, made since May 13, 2026 | Rendering is done. Run the SEO & AI review, give each page its own title and description, add a sitemap, publish, and submit it in Search Console. |
| Lovable, older React + Vite | Google already gets pre-rendered pages. For full server rendering, type / and choose Migrate to TanStack Start. |
| React + Vite, hosted elsewhere | Render your pages at build time, for example with React Router's prerender option or TanStack Start's prerendering, or move to a framework that renders on the server. |
| Next.js | "By default, layouts and pages are Server Components", so the server sends the HTML. Check that your main text isn't only loaded inside a "use client" component. |
The Lovable upgrade "renders your pages on the server". Most upgrades cost "10 to 35 credits", and you can revert it "from your project's version history". One warning from the same page: "Some code libraries only work in the browser and can break server rendering in ways the upgrade's checks do not catch." Lovable's own prompt for it: "Upgrade my app to TanStack Start so my pages render on the server and my link previews work."
React Router turns on pre-rendering in one line of react-router.config.ts:
import type { Config } from "@react-router/dev/config";
export default {
prerender: true,
} satisfies Config;
It writes an HTML file for each page into build/client. One limit: "The boolean true will not include any dynamic paths (i.e., /blog/:slug)", so list those yourself.
Skip "dynamic rendering" (serving bots a separate version of your site), which some older guides still suggest. Google: "Dynamic rendering is a workaround and not a recommended solution". It recommends "server-side rendering, static rendering, or hydration" instead.
A prompt for your coding agent
If the code is on your computer (exported from a builder, or made with Claude Code, Codex or Cursor), open the agent in the project folder and paste this:
This is a client-rendered app: search engines, AI crawlers and link
previews get an almost empty HTML file. Make every public page's first
HTML contain its real content.
1. Tell me which framework, router and host this project uses. Propose
the smallest change that gives each public route its own HTML at build
time or on the server (for example React Router's prerender option,
TanStack Start, or Next.js). Wait for my OK before migrating anything.
2. Give each public route its own <title>, meta description, canonical
URL and og:title, og:description and og:image in that HTML.
3. Make unknown URLs return a real 404 status instead of the app with 200.
4. Generate sitemap.xml and robots.txt at build time from the routes,
with a "Sitemap:" line in robots.txt.
5. Build it, show me the built HTML of the home page and one other page,
and confirm their main text is there without JavaScript.
Don't change how the app looks or works for visitors.
(I build Morphy, an app that runs coding agents like Claude Code and Codex side by side. You can run this prompt in it, but any terminal works.)
Moving a Lovable project to your own computer takes a GitHub sync first: the steps are in Lovable vs Claude Code.
Questions
Does Google run JavaScript? Yes. Google says it "runs JavaScript with an evergreen version of Chromium", after the page waits in a render queue. Most AI crawlers and link-preview bots don't.
Do I have to leave Lovable to rank on Google? No. Apps hosted on Lovable get server rendering (new apps) or pre-rendering for verified crawlers (older apps). What's left is the usual work: titles, a sitemap, Search Console and time.
Why does my link preview show the same title on every page? Each route needs its own Open Graph tags. Lovable: "Lovable apps serve those tags to social-preview bots, but each page still needs its own Open Graph tags."
Do I need an llms.txt file? Not for Lovable: "Lovable does not require llms.txt, and the SEO & AI search review does not treat a missing file as a problem."
Related guides
- Lovable vs Claude Code: speed, cost, and using both
- What vibe coding really costs
- Codex vs Claude Code
References
- Google: JavaScript SEO basics, dynamic rendering, how Search works, ask Google to recrawl, URL Inspection tool
- Lovable: SEO and AI search, upgrade to TanStack Start
- Frameworks: React Router pre-rendering, TanStack Start static prerendering, Next.js Server and Client Components
- Other: Chrome DevTools: disable JavaScript, Vercel: the rise of the AI crawler (December 17, 2024)
