DEV Community

王果ai
王果ai

Posted on

Why AI Crawlers Only See "App Needs JavaScript" (And How We Built an Edge /llms.txt & AEO Checker)

While auditing dozens of newly launched SaaS apps on Show HN this week, the most common growth bug we ran into had nothing to do with product quality—it was invisible HTML for non-JS crawlers.

You can ship a thoughtful 10 KB /llms.txt manifest, launch on Hacker News, and still fail to get indexed properly by ChatGPT Search, Perplexity, or Slack/X link unfurlers if a raw curl https://your-app.com returns an empty <div id="root"></div> or "This app needs JavaScript".

The 4 Checks Most Indie SaaS Launches Miss

When we built the passive diagnostic engine behind LaunchPulse on Cloudflare Workers + D1, we benchmarked launches across 12 lightweight HTTP checks:

  1. Raw HTML Shell (No-JS Readability): Does GET / return a real <title>, <meta name="description">, and meaningful <h1> copy without running client JavaScript?
  2. /llms.txt + robots.txt Alignment: Having /llms.txt is useful, but only if robots.txt doesn't block AI user-agents and the root HTML provides consistent canonical metadata.
  3. <link rel="canonical"> + og:image: Without canonical tags on pSEO or query-string pages, Google Search Console quickly flags duplicate pages; without og:image, social shares lose 60%+ CTR.
  4. Edge 302 Attribution (/r/:code): Instead of guessing which directory or Show HN post sent real signups, a 1-hop edge Worker redirect logs country/device/referrer into D1 before forwarding.

Minimal Edge Check Pattern (Cloudflare Worker)

export async function checkNoJsReadability(targetUrl: string) {
  const res = await fetch(targetUrl, {
    headers: { "User-Agent": "Mozilla/5.0 (compatible; LaunchPulseBot/1.0)" },
  });
  const html = await res.text();
  const hasCanonical = /<link[^>]+rel=["']canonical["']/i.test(html);
  const hasOgImage = /property=["']og:image["']/i.test(html);
  const hasJsonLd = /application\/ld\+json/i.test(html);
  const jsBlocked = /needs?\s+javascript|enable\s+javascript/i.test(html);
  return { status: res.status, hasCanonical, hasOgImage, hasJsonLd, jsBlocked };
}
Enter fullscreen mode Exit fullscreen mode

Try the Free Local / Edge Utilities

We opened up the diagnostic endpoints with zero signup wall:

If you shipped a SaaS this week, try running curl -s https://your-domain.com | head -n 40 first—you might be surprised how much of your landing page is invisible to non-JS bots.

Top comments (0)