Steal My Prompt for a 2X Faster Website ๐๏ธ
The prompt I used, and what my AI assistant found when it went poking around every corner of kirupa.com.
Hi everybody - making a website faster is one of those open-ended problems that never has a single bug to fix. You measure everything, make a guess, try a fix, and then measure again. Itโs tedious, and itโs exactly the kind of work Iโd been putting off on kirupa.com for years.
So I handed it to an AI coding assistant. Over two phases, it measured, guessed, fixed, and measured again while I checked its work and made the calls. Here is how much faster the site got:
The gray bars are where we started, and the green bars are where we ended up. And the best part? Nothing about how the site looks or works changed.
Below, Iโll share the prompt I used so you can do the same thing for your site. After that, Iโll walk through the handful of fixes that made the biggest difference on kirupa.com.
If you want all of the gory details (every chart, every measurement, and every single change), I wrote about this in a lot more depth.
Onwards!
The Prompt
Fill in the parts in square brackets, and give this to whichever AI coding assistant you use, like GitHub Copilot, Claude Code, or Cursor:
I'd like your help making my website faster without changing how it looks or how anything on it works.
My site: [your URL]
Where its code lives: [a repo or folder]
How I publish changes: [for example, FTP, GitHub Actions, or Netlify]
What sits in front of my server, if anything: [for example, Cloudflare]
The pages that matter most: [3 to 5 URLs, like the home page and a typical article]
Before you change anything:
1. Measure those pages as they are today. Run Lighthouse three times on mobile and three times on desktop, and keep the middle result of each. Also write down how long each page takes to start arriving, how many requests it makes, how many bytes it downloads, and what its cache headers say.
2. Also time a click from one of my pages to another, and a repeat visit.
3. Look for pages my CDN isn't caching, pages my server rebuilds on every visit, files that get downloaded and never used, links that could start loading before someone clicks them, and animations that keep running when nobody can see them.
4. Write up what you found, sorted by how much time each fix would save, and wait for me to pick what to do.
When you make changes:
- Keep the design and every interactive feature exactly the same. Compare screenshots before and after on desktop and mobile, in light and dark mode.
- Make one kind of change at a time.
- If you cache pages, make sure every way I publish also clears the cached copy. Prove it by publishing a small real change and checking that it shows up right away.
- Only report numbers you actually measured.
When you're done, measure the same pages the same way again, and give me a before-and-after table.Notice that the prompt has the assistant measure before it changes anything, and then wait for you to pick what to fix. You stay in charge of the decisions, and the assistant does the tedious measuring.
One more tip. A lot of the biggest fixes live in your CDNโs settings (your CDN is the service, like Cloudflare or Fastly, that sits in front of your server). If youโre comfortable with it, give your assistant an API token that only works on your site and can only read settings, edit cache rules, and clear the cache. Keep it out of your code and your chat history, and delete it when youโre done.



