Skip to content
Insights

Lighter websites

Choosing a WordPress Theme by Weight

Before you buy or switch a WordPress theme, test what it loads: the demo, a preview with your content, and the sliders, icons and scripts you won't use.

Sol Rudd6 min read

Diagram: a theme demo page with a slider, beside a checklist where fonts and scripts are ticked as used and the slider and icon set are crossed out as unused

A WordPress theme is more than a look. It decides which stylesheets, scripts, fonts and icons load on every page, often before you have added a single word or photo. Choosing one is a good moment to ask how heavy it is, because it is much easier to start light than to slim a site down later. This article explains how to weigh a theme before you buy it or switch to it.

Test the demo, then test with your content

Theme demos are built to impress. They tend to use large photos, sliders and animation to show off every feature. That makes the demo a useful worst case, but not a forecast of your site. Run the demo's home page and one inner page, such as a blog post, through a GreenTracer check. Note the page weight and compare it with the bands on the rating page: on a standard host, a grade B page is about 978 kB or less.

Then try it with your own content. The WordPress.org guide to the Appearance Themes screen explains that once a theme is installed you can use “Live Preview” to see how your site will appear with it, before you activate it. A staging copy of your site is even better, because you can check real pages without visitors seeing anything change.

See what the page really loads

A carbon check gives you the total. To see where it comes from, open the page with Chrome DevTools' Network panel. The DevTools Network reference explains the steps: tick “Disable cache” to mirror a first-time visitor, filter by type with the JS, CSS, Img and Font buttons, and read the number of requests and the total transferred in the status bar at the bottom.

  • Scripts (JS). Look for file names that hint at features you don't plan to use, such as a slider, lightbox or animation library.
  • Styles (CSS). Watch for one large stylesheet covering every layout the theme offers. Our article on unused CSS and page builders shows how to measure how much of it a page uses.
  • Fonts. Count the font files. Several weights of two families, plus an icon font, add up quickly.

Do this on the demo and on your preview. If the same large files appear on a simple text page, they are loading everywhere, not just where they are needed.

Bundled extras you may never use

Many themes include features that suit some sites and not others. The common ones to watch for:

  • Sliders and carousels. If you plan a single hero image, check the slider can be switched off completely, not just hidden. See hero banners and sliders.
  • Icon sets. A whole icon font for a handful of social icons is a familiar pattern; our guide to using SVG instead of icon fonts explains the alternative.
  • Built-in extras. Contact forms, social sharing buttons and analytics. WordPress.org's theme review requirements treat these as “plugin territory”, so themes in the official directory should leave them to plugins. Themes sold elsewhere follow their own rules, so check rather than assume.

None of these is wrong in itself. The question is whether you will use them, and whether they load on pages that don't.

Block themes and loading only what is used

WordPress now has two broad kinds of theme: classic themes and block themes, which are configured largely through a theme.json file. The Theme Handbook calls theme.json “a foundational piece of block theming”, and its page on including assets puts it simply: “Many block themes do not need to load any assets.” The same page says themes should never hard-code script and style tags, but load them through WordPress functions such as wp_enqueue_style(), which lets WordPress and plugins manage them.

There is also a WordPress filter, a developer-level setting added in version 5.8, that controls whether the styles for core blocks load only when those blocks appear on a page. The code reference says that when it is off, all core block assets load “regardless of whether they are rendered in a page or not”, and lists the default as off. It is worth asking your developer how a theme you are considering handles this.

A block theme is not automatically light, and a classic theme is not automatically heavy. Measure the theme you are looking at.

Questions to ask before you switch

  1. How much does the demo home page weigh, and how much does a plain text page weigh?
  2. With Live Preview or a staging site, what does your own home page weigh with the new theme?
  3. Can the slider, animations and icon font be turned off, so their files stop loading?
  4. How many font files load, and can you choose fewer weights?
  5. Does it rely on a page builder, and what does that add on every page?

If you do switch, the WordPress theme testing guide describes test content you can import to try a theme across many kinds of posts and media. After the change goes live, check your key pages again and compare with your earlier reports, which are kept as history.

Sources

All articles

Check your own site

See the estimated carbon of one page view on your page, its grade, and whether your host is listed as green. It's free.

Check a website