KIRUPA ๐ŸŠ
KIRUPA ๐ŸŠ
HomeArchiveLeaderboardAbout
Sign in

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.

KIRUPA ๐ŸŠ's avatar
KIRUPA ๐ŸŠ
Dec 1โˆ™ Paid

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:

Before and after bars for eight measurements, with how many times better each got. Load time on a phone, 2.69 to 1.15 seconds, 2.3X. Load time on desktop, 682 to 304 milliseconds, 2.2X. Time to first byte, 149 to 61 milliseconds, 2.4X. Next article after a click, 192 to 100 milliseconds, 1.9X. Requests per page, 87 to 59, 1.5X. Data per page, 276 to 222 KB, 1.2X. Icons on screen on the home page, 2.5 to 1.7 seconds, 1.5X. Restyling while scrolling the BFS article, 182,761 to 24,431 elements, 7.5X. A robot says Not bad for a robot!, pointing at the 2.3X.

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.

User's avatar

Continue reading this post for free, courtesy of KIRUPA ๐ŸŠ.

Or purchase a paid subscription.
KIRUPA ๐ŸŠ

Thought provoking and educational content that lives at the intersection of design ๐ŸŽจ, development ๐Ÿค–, and business ๐Ÿ’ฐ.

  • About
  • Archive
  • Recommendations
  • Sitemap
ยฉ 2026 KIRUPA ๐ŸŠ ยท Privacy โˆ™ Terms โˆ™ Collection notice
Start your SubstackGet the app
Substack is the home for writing, podcasting, and media founders.