跳到正文
DEV Community· riona he·· 24 分鐘前AI 評分66

AI 生成落地頁合併前的 15 分鐘 Core Web Vitals 檢查指南

Before You Merge an AI-Built Landing Page: A 15-Minute Core Web Vitals Review

AI 導讀

這篇指南提供 AI 生成落地頁合併前的 15 分鐘 Core Web Vitals 檢查流程,聚焦 LCP、CLS 和 INP。流程包括以手機模擬和節流設定執行 Lighthouse、檢視 Network 面板中體積最大的請求,並在實際手機上測試按鈕和選單。作者建議把具體問題轉成提示詞約束,只重新生成出問題的版塊,並提醒實驗室分數不等同真實用戶數據。

正文

Disclosure: I work on VibUI, a paid catalogue of website prompts. It appears once, near the end. The review below needs only a browser and whichever AI tool you already use.

Short answer: an AI-built landing page can look finished in the preview and still fail on speed: an oversized hero image delaying the main content, elements that jump as fonts and images load, and scripts that make taps feel slow. Spend fifteen minutes on three metrics (Largest Contentful Paint, Cumulative Layout Shift and Interaction to Next Paint), write each finding back into the prompt as a constraint, and regenerate only the section that failed. This applies to output from v0, Lovable, Bolt, Cursor, Windsurf, Claude, ChatGPT, Gemini, Replit, GitHub Copilot, Framer AI, Google Stitch, Readdy, Aura.build and OpenAI Codex.

The gain is small and concrete: a page you can hand to a client or ship without a "why is it slow on my phone?" follow-up. It is not a promise of any ranking or conversion change.

Why do AI-built pages pass the eyeball test and fail the speed test?

A preview shows a fast laptop on a good connection. The problems are invisible there:

  • Heavy hero media. A full-bleed image or video is requested at original size, so the biggest element on screen is also the slowest to arrive.
  • No reserved space. Images, embeds and web fonts load without width, height or fallback metrics, so text and buttons move after the reader has started reading.
  • Decorative JavaScript. Scroll effects, particle backgrounds and animation libraries are added "for polish" and run on the main thread.
  • Third-party tags nobody asked for. Chat widgets, font loaders and analytics snippets get pasted in by habit.

Which three metrics should you read first?

Metric What it measures Common AI-built cause Constraint to add to the prompt
Largest Contentful Paint (LCP) How quickly the main content appears. Google's "good" line is 2.5 s or less. Unoptimised hero image or video, render-blocking fonts "Hero image: modern format, explicit width and height, no autoplay video; preload only the hero asset."
Cumulative Layout Shift (CLS) How much content jumps during load. "Good" is 0.1 or less. Images without dimensions, late-loading fonts, injected banners "Reserve space for every image and embed; use font-display: swap with a similar fallback."
Interaction to Next Paint (INP) How fast the page responds to taps and clicks. "Good" is 200 ms or less. Heavy scripts, large animation loops, re-rendering widgets "No animation library; CSS transitions only; no script on the main thread that is not needed for the first screen."

How do you run the review in fifteen minutes?

  1. Open the page in a private window and run Lighthouse in DevTools with mobile emulation and throttling on.
  2. Write down LCP, CLS and the biggest items in the "opportunities" list. Do not average runs you have not repeated.
  3. Open the Network panel, sort by size, and look at the top five requests. If one of them is a decorative asset, that is your first fix.
  4. Scroll the page slowly on a throttled profile and watch for jumps.
  5. Tap every button and menu on a real phone, not only in emulation.

Treat these as lab numbers. Real-user (field) data only exists after real visitors arrive, so do not quote a lab score as a result.

What should the performance constraints in the first prompt look like?

Build the [PAGE] section by section. Performance rules (apply to every section):
- Hero: one optimised image, explicit width/height, no autoplay video, no background animation loop.
- Fonts: at most two families, font-display: swap, system fallback with similar metrics.
- Images: lazy-load everything below the first screen; always set width and height.
- JavaScript: none unless a feature needs it; no animation or carousel library; no third-party tags.
- Layout: reserve space for embeds, forms and images so nothing moves after load.
- Report back: list every external request the page makes.

Ask the tool to list every external request. That one line catches most of the surprise scripts before you open DevTools.

Where does a prompt catalogue fit in a performance workflow?

If you build one page a quarter, keep the block above in a snippets file and skip any paid library. A catalogue earns its place only when you repeat the same section types often and want starting briefs that already carry constraints like these.

If you want to inspect one: The library I work on is VibUI. It has 2,852 website prompt templates (775 full pages, 1,100 sections, 817 components and 160 animated backgrounds), and about 1,000 of them include source code. Payment is one-time with no auto-renewal: $48 quarterly, $99 yearly, or $179 lifetime (listed down from $384). The yearly and lifetime plans also include 2,407 AI video prompts. There are 60 free samples, and a free account can copy 2 prompts. Try a free sample on a real section, run it through the review above, and only consider paying if it saves you setup time on pages you will actually build.

FAQ

Is a perfect Lighthouse score the goal?

No. Use it to find the largest problems. A page that scores a little lower but loads its main content quickly on a phone is better than one tuned to the test.

Should I remove all animation?

Not necessarily. Keep it cheap (CSS transforms and opacity), keep it away from the first screen, and respect reduced-motion settings.

Can the AI tool fix these issues by itself?

It can, if you hand it the specific finding ("LCP element is the hero image, no dimensions") and ask it to change only that section. Vague requests like "make it faster" rarely help.

Do I need to pay for a library to follow this review?

No. Everything above works with free tools and the AI builder you already use.

來源:DEV Community · dev.to