{"slug": "how-we-built-a-0-79s-mobile-lcp-static-site-that-scores-100-100-for-ai-agents", "title": "How We Built a 0.79s Mobile LCP Static Site That Scores 100/100 for AI Agents (Vite + Cloudflare Pages + llms.txt)", "summary": "A developer at Syntax Weavers, a Santo Domingo web design studio, built a static site with Python and Vite hosted on Cloudflare Pages that achieves 0.79s mobile LCP at zero monthly hosting cost. The site ships llms.txt, llms-full.txt, agent.json and an agent-mode view, scoring 100/100 on is-agentic.com, and the studio reports that chatgpt.com sent 16 sessions in its first month with a 62.5% engagement rate and one WhatsApp lead conversion. The developer also found that Cloudflare's generic Bot Fight Mode blocked legitimate AI crawlers, requiring targeted WAF rules instead.", "body_md": "Most small business websites in the Dominican Republic run on heavy WordPress themes with 20 plugins, 4 to 7 second mobile load times, and US$150+ yearly hosting renewals. When I built [Syntax Weavers](https://syntaxweavers.com/), my web design studio in Santo Domingo, I wanted the site itself to prove a simpler architecture: static HTML generated with Python and Vite, hosted for free on Cloudflare Pages, and readable by both Google and AI assistants like ChatGPT and Perplexity.\n\nHere is the exact setup, what actually moved the needle in Search Console and GA4, and what broke along the way.\n\nInstead of running a database or CMS for pages that change a few times a month, our build pipeline has three steps:\n\n`pages.py`) builds 48 static HTML landing pages with per-route `<title>`, `<meta description>`, canonical URLs, Open Graph tags, and JSON-LD (` Organization`, `WebSite`, `Service`, `BreadcrumbList`, `FAQPage`).` dist/` folder with global edge caching (`edge_ttl = 86400s` for HTML) and automatic HTTPS.\nThe result on real mobile tests: **0.79s mobile LCP**, zero monthly hosting cost, and the only recurring expense for a small business is the `.com` domain (~US$10/year).\n\nWe also put two zero-dependency client tools on top of those static pages (3.6 KB gzipped total, lazy-loaded only on their routes):\n\nIn our first month of GA4 traffic, `chatgpt.com` sent 16 sessions with a 62.5% engagement rate and converted a WhatsApp lead at 6.25%, higher than early Google organic clicks (2.17%). That showed us people were already asking AI tools to compare local web design options.\n\nTwo mistakes almost cost us that traffic:\n\n`managed_challenge` hits in 3 days against `OraBot/1.0`. Turning off generic Bot Fight Mode while keeping targeted WAF blocks for scanner paths (`/wp-admin`, `/xmlrpc.php`, `/.env`) let legitimate crawlers and AI evaluators read the site cleanly.`llms.txt`, `llms-full.txt`, and `agent.json` fixed the mismatch.\nTo make the site cleanly parseable for LLM crawlers and agent browsers, we ship four machine-readable surfaces:\n\n`/llms.txt` with a short structured map plus a bilingual `When to use Syntax Weavers` section for agent routing.`/llms-full.txt` generated automatically from all pages on every build.`/agent.json` exposing services, currency, pricing floors, `hosting_included: true`, and contact endpoints.`/?mode=agent` serving a stripped semantic view without animations or smooth-scroll overhead.\nWith those in place, [is-agentic.com](https://is-agentic.com/scan/syntaxweavers.com) scores `syntaxweavers.com` at **100/100** (80/80 essential, 20/20 recommended).\n\nWe used Lenis for smooth scrolling on desktop. On touch devices, smooth-scroll wrappers can fight native iOS Safari momentum scrolling. Gating it behind pointer capability fixed mobile feel immediately:\n\n``` js\nconst fine = window.matchMedia('(pointer: fine)').matches;\nconst reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\nif (!reduced && fine) {\n  initLenis();\n}\n```\n\nTechnical speed and structured files get you indexed fast (47 of 48 pages indexed in Google within weeks), but they do not replace off-site authority. In Google Search Console, our main bottleneck is still **zero external backlinks** and **zero Google Maps reviews** compared to older agencies in Santo Domingo.\n\nIf you are launching a studio or local service site from scratch, get the technical foundation clean in week one, then spend 80% of your time on useful free tools, transparent local comparisons (like our breakdown of [web design agencies in the Dominican Republic](https://syntaxweavers.com/mejores-agencias-diseno-web-republica-dominicana/)), and real reviews from clients.", "url": "https://wpnews.pro/news/how-we-built-a-0-79s-mobile-lcp-static-site-that-scores-100-100-for-ai-agents", "canonical_source": "https://dev.to/johan_larosaguaicara_e7/how-we-built-a-079s-mobile-lcp-static-site-that-scores-100100-for-ai-agents-vite-cloudflare-ckd", "published_at": "2026-12-05 18:07:33+00:00", "updated_at": "2026-12-05 18:13:28.517755+00:00", "lang": "en", "topics": ["generative-engine-optimization", "ai-crawlers", "ai-search", "agent-protocols", "structured-data"], "entities": ["Syntax Weavers", "Cloudflare Pages", "Vite", "ChatGPT", "Perplexity", "Google Search Console", "GA4", "is-agentic.com"], "also_reported_by": [], "takeaway": "Serving llms.txt, llms-full.txt, agent.json and a stripped agent-mode view alongside JSON-LD earned a 100/100 agent-readiness score, while disabling generic Bot Fight Mode in favor of targeted WAF blocks let AI crawlers through.", "recommendation": {"advice": "Publish llms.txt, llms-full.txt and agent.json and disable generic bot challenges, keeping targeted WAF blocks for scanner paths, so AI crawlers and agent browsers can read your site.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/how-we-built-a-0-79s-mobile-lcp-static-site-that-scores-100-100-for-ai-agents", "markdown": "https://wpnews.pro/news/how-we-built-a-0-79s-mobile-lcp-static-site-that-scores-100-100-for-ai-agents.md", "text": "https://wpnews.pro/news/how-we-built-a-0-79s-mobile-lcp-static-site-that-scores-100-100-for-ai-agents.txt", "jsonld": "https://wpnews.pro/news/how-we-built-a-0-79s-mobile-lcp-static-site-that-scores-100-100-for-ai-agents.jsonld"}}