Skip to main content
prompt GP ChatGPT

Web Performance taste — ChatGPT prompt: what it does and setup

This prompt gives frontend work a performance checklist, from real-user Core Web Vitals to JavaScript budgets and image loading.

Open on GitHub

What Web Performance taste does

The prompt frames frontend decisions around LCP, INP, and CLS, along with page-load behavior and performance budgets. It recommends rendering the first view on the server or statically, splitting code by route, and delaying heavy widgets. It offers guidance; it does not measure a site or change its code.

Other recommendations cover AVIF or WebP images, prioritizing the LCP image, caching static assets, and testing on an Android phone with a throttled connection. It also suggests CI checks for JavaScript size and LCP. Those checks need to be added to the project separately; the prompt does not configure CI.

What it helps with

  • review changes against LCP, INP, and CLS
  • reduce JavaScript needed for the first view
  • decide which images and widgets to load later
  • set JavaScript and LCP budgets for CI
  • spot layout shifts and long main-thread tasks

Example prompts for the agent

  • Review this interface using web performance guidance and flag issues affecting LCP, INP, and CLS.
  • Suggest ways to reduce first-view JavaScript and split code by route.
  • Draft JavaScript-size and LCP budgets that CI can enforce.

How to install Web Performance taste

How to use

Paste the text at the start of a chat or into project instructions

Questions about Web Performance taste

How do I install Web Performance taste in ChatGPT?

There is no install command for this prompt in ChatGPT. Provide its text as task instructions to ChatGPT.

What does Web Performance taste do?

It gives frontend work guidance on Core Web Vitals, resource loading, and interface responsiveness. It recommends measuring real-user metrics and testing on Android with a constrained network.

Does it configure CI checks?

No. It recommends enforcing JavaScript-size and LCP budgets in CI, but those checks must be added to the project separately.

Source text

prompts.csv · CC0-1.0
# Web performance taste of a frontend engineer
- Measure Core Web Vitals (LCP, INP, CLS) from real users, not only from lab Lighthouse runs. Confidence: 0.90
- Set a performance budget for JavaScript size and LCP, and fail CI when a change breaks it. Confidence: 0.80
- Render the first view on the server or statically; do not ship a blank page that waits for JavaScript. Confidence: 0.90
- Ship less JavaScript before optimizing the JavaScript you ship. Confidence: 0.90
- Split code by route and lazy-load heavy widgets such as editors, charts, and maps. Confidence: 0.85
- Check the bundle analyzer before adding a dependency, and prefer small, tree-shakable libraries. Confidence: 0.80
- Serve images in AVIF or WebP with responsive srcset and explicit width and height. Confidence: 0.90
- Mark the LCP image with fetchpriority="high" and never lazy-load it. Confidence: 0.85
- Lazy-load below-the-fold images and iframes with loading="lazy". Confidence: 0.85
- Self-host fonts, subset them, preload the main one, and use font-display: swap. Confidence: 0.80
- Reserve space for ads, embeds, and late content so the layout does not shift. Confidence: 0.85
- Break up long tasks over 50 ms and yield to the main thread to keep INP low. Confidence: 0.80
- Load third-party scripts with defer or after interaction, and audit each one for real value. Confidence: 0.85
- Cache hashed static assets with Cache-Control: immutable for a year. Confidence: 0.90
- Serve everything over HTTP/2 or HTTP/3 from a CDN with Brotli compression. Confidence: 0.85
- Preconnect only to the one or two origins needed for the first render. Confidence: 0.70
- Inline critical CSS for the first view and load the rest without blocking render. Confidence: 0.65
- Virtualize long lists instead of rendering thousands of DOM nodes. Confidence: 0.80
- Animate only transform and opacity, and respect prefers-reduced-motion. Confidence: 0.85
- Avoid layout thrashing: batch DOM reads before DOM writes. Confidence: 0.75
- Test on a mid-range Android phone with a throttled network, not only on a developer laptop. Confidence: 0.90
- Treat a performance regression like a bug, with an owner and a fix date. Confidence: 0.80

© f · CC0-1.0 · f/prompts.chat

Similar prompts

All prompts for Frontend and UI →

From the same set133

The whole set →
SwiftUI iOS App taste A set of rules for SwiftUI work: how to build screens, where state lives and which APIs to drop. Useful when an agent writes fresh iOS code. GP ChatGPT ★ 174,676repo stars Universal LLM Operating Guidelines A rule set for LLM-assisted coding: understand the task first, then touch the code. Cuts invented APIs and stray edits. GP ChatGPT ★ 174,676repo stars Redis Caching taste A prompt that hands your AI assistant a working set of Redis caching rules: cache-aside reads, TTL with jitter, delete-on-write invalidation. Useful when you design a cache and want the sharp edges covered. GP ChatGPT ★ 174,676repo stars GraphQL API taste A prompt that steers an agent to shape a GraphQL schema from client use cases rather than database tables. Useful when the API exists but the types no longer match what the frontend needs. GP ChatGPT ★ 174,676repo stars Error Handling taste A prompt that gives an AI assistant the error-handling taste of a TypeScript backend engineer: validate input, split expected errors from bugs, log once, answer with problem+json. GP ChatGPT ★ 174,676repo stars Kubernetes taste A prompt that hands your AI assistant a platform team's Kubernetes rules: GitOps, probes, resources, pod security. Useful when you ask a model to write or review manifests. GP ChatGPT ★ 174,676repo stars Terraform taste This prompt lays out Terraform practices for project structure, state management, and CI checks. Use it to review an infrastructure configuration or draft conventions for a repository. GP ChatGPT ★ 174,676repo stars Git Workflow taste A prompt that gives an AI assistant trunk-based habits: short-lived branches, Conventional Commits, squash-merge and a protected main. GP ChatGPT ★ 174,676repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor