---
url: https://docs.artemsemkin.com/velum/wp/integrations/keeping-the-site-fast.md
description: >-
  Keep the site fast with right-sized images and videos and a caching plugin
  (LiteSpeed Cache, WP Rocket or Autoptimize) set up the way Velum was tested,
  use an image CDN, and see what PageSpeed scores to expect.
---

# Keeping the site fast

The theme is built to load fast, and a few habits keep it that way as you add your own content: right-sized images and videos, a caching plugin and a fast host. This page covers the ones that matter most.

## Sizing images and videos

Large files are the most common cause of a slow page. The sliders draw their images on a canvas, so an oversized image costs memory on a phone as well as download time.

* **Images:** upload them no wider than the largest size they appear, 1920 pixels is enough for a full-width image, and compress them before uploading. WebP or AVIF files are smaller than JPEG at the same quality.
* **Videos:** export them at 1080p at most and compress them, for example with [HandBrake](https://handbrake.fr/). A 4K video slows every device that plays it, and iOS Safari plays only videos up to a limited size, so test on an iPhone.

## Setting up a caching plugin

**LiteSpeed Cache → Presets**

A caching plugin stores finished pages and shrinks scripts and styles. Velum was tested with [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/), [WP Rocket](https://wp-rocket.me/) and [Autoptimize](https://wordpress.org/plugins/autoptimize/). The steps below use LiteSpeed Cache, which works on any host and is free.

#### ▶️ Step 1.

Install and activate **LiteSpeed Cache** under **Plugins → Add Plugin**, then open **LiteSpeed Cache → Presets**.

![Presets offers five ready-made configurations; Advanced is the one LiteSpeed recommends](https://docs.artemsemkin.com/velum/wp/images/integrations/keeping-the-site-fast-1.png)

#### ▶️ Step 2.

Click **Apply Preset** under **Advanced (Recommended)**. **Basic** and **Aggressive** were tested with Velum too, and **Essentials** is the choice when you do not want a QUIC.cloud connection. The **Extreme** preset has not been tested with Velum.

![Apply Preset sits at the bottom of each preset's column](https://docs.artemsemkin.com/velum/wp/images/integrations/keeping-the-site-fast-2.png)

#### ▶️ Step 3.

Open the **LiteSpeed** menu in the admin bar and choose **Purge All**. Then open your pages in a private window and check that the sliders, the menu and a page transition still work.

![Purge All sits in the LiteSpeed menu of the admin bar](https://docs.artemsemkin.com/velum/wp/images/integrations/keeping-the-site-fast-3.png)

::: warning Test after every change
Every optimization option can break something on some site. Purge the cache after each change and check the pages again. If a page breaks, turn the last option off. The settings tested with Velum, and what to do when one breaks the site, are in [The site breaks after turning on a caching plugin](../help/caching-plugin-broke-the-site).
:::

::: tip Purge the cache after every update
After you update the theme or a plugin, choose **Purge All** again. A cache that still serves the old files can show a half-updated site.
:::

## Using an image CDN

The sliders draw their images with WebGL, and WebGL may read an image from another domain only when the CDN that serves it allows that with a header. A CDN on your own domain needs nothing. For one on another domain, do this once.

#### ▶️ Step 1.

Find out where your images come from. Right-click an image on a page, choose **Copy Image Address** and look at the domain in it. If it is your own domain, you are done.

#### ▶️ Step 2.

If it is another domain, switch on CORS in your CDN: the setting for each CDN is in the table of [The slider is blank when images come from a CDN](../help/slider-blank-cdn-images).

#### ▶️ Step 3.

Purge the CDN's cache, then open the homepage in a private window and check that the slider shows every slide. If it stays blank, the browser console names the host that has to send the header.

## What PageSpeed score to expect

These numbers come from Lighthouse, the engine behind [PageSpeed Insights](https://pagespeed.web.dev/), run on 10 November 2026 against the live demo at [artemsemkin.com/velum/wp](https://artemsemkin.com/velum/wp/). They are lab runs that copy PageSpeed's setup: a simulated mid-range phone on a slow 4G connection for mobile, the desktop preset for desktop, and no graphics card, so WebGL scenes render in software, as they do on Google's servers. Your own result on PageSpeed Insights can differ by a few points.

The table shows five pages, each run three times: the median score, and for mobile the lowest and highest in brackets. A median of 100 is shown as 99+, since the top of the scale is within the noise.

| Page | Mobile | Desktop | Mobile LCP |
|---|---|---|---|
| Home | 98 (96–98) | 99+ | 2.2 s |
| Landing page | 97 (92–98) | 99 | 2.6 s |
| Portfolio | 83 (80–84) | 97 | 4.2 s |
| A portfolio item | 98 (97–98) | 99 | 2.1 s |
| Journal | 80 (79–81) | 94 | 4.8 s |

LCP is the time until the largest element is painted. Layout shift (CLS) stayed under 0.05 on every run, and total blocking time stayed under 40 ms on mobile and was 0 ms on desktop.

You can repeat a measurement yourself: open the [Velum demo](https://artemsemkin.com/velum/wp/) and click the **Demo settings** tab in the bottom left corner. Choose the settings you want, such as switching the entrance animations off, and click **Run PageSpeed**. Your own site will score differently, since your host, images, plugins and cache setup count too. Compare your own before and after, and judge the feel of the site on a real device.
