Is my site carrying dead weight?

A moved site sometimes carries luggage it never unpacks — styling files from earlier versions of the move that nothing on the site uses any more. Visitors never see them, but they can add hundreds of megabytes to your site's storage and get in the way when you ask for bigger changes later.

How it works

  1. Connect bernard to your AI (once). Log in to bernard, open your site, go to Use your own AI, and paste the setup prompt into your AI to connect it — a one-time setup.
  2. Ask for the check. Use the prompt below, or your own words. The AI reads the complete contents of every page and stylesheet and reports what nothing uses — with names and sizes, so you can see exactly what would go.
  3. Approve the cleanup. Removals land on your draft, not your live site. Look at the list, say yes, and approve as usual. Anything removed stays recoverable from your site's history.

What the check tells you

Three things, each with its own fix:

  • Files nothing uses — safe to remove; this is the dead weight.
  • Very large styling files that ARE in use — these can't just be deleted; ask bernard's team about splitting them (see Give my site a health check for the broader check-up this pairs with).
  • Leftovers in storage — debris from older versions of your site that the AI can see but can't remove itself; it will tell you so you can ask the bernard team.

Worth knowing

  • The check is thorough on purpose: a quick skim of each page's opening lines gets this wrong — a file can be referenced far down a long page. The AI reads everything before calling anything unused.
  • A big cleanup happens in batches of a hundred files at a time; the AI keeps going until the list is empty.
  • Removing dead weight doesn't change how your pages look — that's the point. If anything looks different afterwards, say so and ask for it to be undone.

The prompt

Check my site for dead weight — old stylesheets or files that nothing actually uses. Show me the list first with sizes, and don't remove anything until I say so.

Press Copy, then paste it into your AI and fill in the [bracketed] parts. First time? Connect your AI to bernard first — a one-time setup in bernard → your site → Use your own AI.

Questions people ask

How does the AI know a file is really unused?
It checks the complete contents of every page and stylesheet on your site for anything that points at the file — not a quick skim, the whole text of everything. Only a file nothing mentions anywhere is called unused, and it re-checks at the moment of removal in case something changed.
What if it removes something my site needed?
Removals go onto your draft first, so nothing changes on your live site until you approve them — and every removed file stays in your site's history, so any one of them can be restored. Ask the AI to bring a file back and it can.
Where does the dead weight come from?
Mostly from the move itself. Bringing a site over from WordPress or a page builder can leave behind earlier generations of styling files that nothing links to any more. They don't slow your pages down for visitors, but they bloat your site's storage and make some cleanup jobs harder.

You might also want to…