← All prompts

Frontend Performance Audit

Websites

Works in ChatGPT, Claude, Gemini and Cursor. Free to use.

Frontend Performance Audit

What it does

Takes your Lighthouse or PageSpeed Insights results and your page code, and finds what is slowing the page down. You get specific fixes in order of impact, and what to re-check after each one. It also tells you what’s already fine.

When to use it

  • Your page feels slow and you can get its speed numbers
  • Lighthouse flagged a problem and you’re not sure what to change
  • You’re about to launch and want to catch the easy fixes

The prompt

Act as a web performance engineer. Rules: Work only from the real numbers and code I give you. Do NOT invent metrics or guess at values I didn't provide. If you need a number I don't have, tell me how to get it (Lighthouse / PageSpeed Insights / DevTools). Rank fixes by likely impact, and say so when a "problem" is fine. No made-up percentages.

My real metrics (paste what you have from Lighthouse/PSI): [LCP, CLS, INP/TBT, total page weight, request count, whatever I have]
What the page is: [DESCRIBE, and paste the <head> and any big scripts/styles if you can]
What feels slow to me: [FIRST PAINT / JANK ON SCROLL / SLOW TAP / JUST THE SCORE]

Give me:
1. The diagnosis: which metric is bad vs which is fine, read from MY numbers, with no invented data.
2. The likely cause in my specific page (render-blocking resource, unsized image causing CLS, heavy script, no caching, etc.), pointing at the actual code I pasted where possible.
3. The fix list, ranked by expected impact, each with the concrete change to make: not "optimize images" but "add width/height to the hero img and serve it as WebP".
4. What to re-measure after each fix to confirm it worked.
5. What to leave alone: anything that's already good and not worth touching, so I don't waste effort chasing a green score.

Example

This is a made-up case, and we asked the AI to keep its answer short.

What we filled in:

My real metrics (paste what you have from Lighthouse/PSI): mobile Lighthouse performance score 38. LCP 6.1 s, CLS 0.34, TBT 710 ms, FCP 2.9 s, Speed Index 7.2 s. Total page weight 6.4 MB, 97 requests. Desktop score is 71 with LCP 2.8 s and CLS 0.12
What the page is: the homepage of my bakery in Portland, Oregon, built on WordPress with a purchased theme. Top is a full-width slider with 4 photos (the first is a 3.2 MB JPEG, 4000 by 2600, no width or height set), then opening hours, a grid of 12 product photos and an embedded map. Head: <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Playfair+Display&family=Lato&display=swap"><link rel="stylesheet" href="/wp-content/themes/crumbtheme/style.css"><link rel="stylesheet" href="/wp-content/plugins/slide-deck-pro/css/slider.min.css"><script src="/wp-includes/js/jquery/jquery.min.js"></script><script src="/wp-content/plugins/slide-deck-pro/js/slider.min.js"></script><script src="https://cdn.chatnook.example/widget.js"></script></head>. The theme also loads a 1.1 MB icon font
What feels slow to me: first paint. On my phone the page is blank for a few seconds and then the slider jumps into place

What came back:

1. The diagnosis
Every mobile number misses Google's "good" lines (LCP 2.5 s, CLS 0.1, TBT 200 ms, FCP 1.8 s, Speed Index 3.4 s).
Far off: LCP 6.1 s, CLS 0.34, TBT 710 ms and Speed Index 7.2 s.
Least bad: FCP 2.9 s, which is your blank screen.
Desktop LCP 2.8 s and CLS 0.12 are just over, so this is mainly a mobile problem.

2. The likely cause
Blank screen: jquery.min.js, slider.min.js and widget.js load in the head with no defer or async, behind three stylesheets. Nothing paints until they finish.
LCP: the first slide, probably your LCP element, is a 3.2 MB, 4000 by 2600 JPEG, half your 6.4 MB. The slider script likely holds it back too.
CLS: it has no width or height, so no space is saved. That is your jump.
TBT: those scripts run during load. The report's JavaScript execution time section shows which costs most.
Unknown: product photo and map sizes, and caching. Sort the DevTools Network tab by size, and check the report's cache section.

3. The fix list, biggest impact first
First, the hero, which drives LCP and CLS. Best is one still photo instead of the slider, with the plugin off. Export it as WebP at 1600 and 800 px wide, with size and priority set:
<img src="/wp-content/uploads/hero-1600.webp" srcset="/wp-content/uploads/hero-800.webp 800w, /wp-content/uploads/hero-1600.webp 1600w" sizes="100vw" width="1600" height="1040" fetchpriority="high" alt="[describe the photo]">
Keeping the slider? Upload the WebP and reserve its space, using its real wrapper class:
.slider-wrapper { aspect-ratio: 20 / 13; }
Second, defer the slider and chat scripts with this in a child theme's functions.php or a snippets plugin, then test both:
add_filter( 'script_loader_tag', function ( $tag, $handle, $src ) {
  if ( preg_match( '/slide-deck-pro|chatnook/', $src ) ) {
    return str_replace( ' src=', ' defer src=', $tag );
  }
  return $tag;
}, 10, 3 );
If the chat tag sits in a header box, add defer there.
Third, if the theme uses only a few icons, swap the 1.1 MB icon font for inline SVGs.
Fourth, resize the 12 product photos, give them width, height and loading="lazy", and lazy-load the map iframe or use a static map image.

4. What to re-measure
After the hero: LCP and CLS, and the report's LCP element should be the new WebP.
After the scripts: FCP, Speed Index and TBT, and the render-blocking list should drop them.
After the font and photos: page weight in the Network tab, cache disabled.
Each time, run mobile Lighthouse 3 times and use the middle score.

5. What to leave alone
Your charset and viewport tags are correct.
Google Fonts already uses display=swap. Fine as is.
jQuery: leave it. Deferring it can break plugins.
Desktop: the mobile fixes will lift it.
97 requests: don't chase it. It drops on its own.
Aim for a fast first screen, not a green 100.

Tips

  • Run the page through PageSpeed Insights first and paste the results. The advice is only as good as the numbers you give it.
  • Fix one thing, measure again, then move on. If you change a lot at once, you won’t know what helped.
  • You don’t need a perfect score. It points out what’s already good enough to leave alone.