Measure before changing anything

Use Google PageSpeed Insights to test a representative URL on mobile and desktop. Review the field data when it is available and compare it with the lab test. The report may identify image loading, JavaScript, layout shifts or server response as areas to investigate. Record the page and date so you can compare the same URL after making a change.

Understand the main experience signals

Largest Contentful Paint (LCP) is concerned with when the largest main content element becomes visible. Interaction to Next Paint (INP) looks at how responsive the page is to user interactions. Cumulative Layout Shift (CLS) measures unexpected movement of page elements. These signals help describe different parts of the experience; a page can load quickly but still feel awkward if buttons respond slowly or content shifts while reading.

Optimise images first

Large images are a common source of unnecessary page weight. Resize images to the dimensions they are actually displayed at, choose an efficient modern format when supported, compress without making them visibly poor and avoid loading huge desktop images on small screens. Use descriptive file names and meaningful alternative text when an image communicates information. Do not lazy-load the main image that needs to appear immediately at the top of the page.

Review scripts and third-party widgets

Chat widgets, trackers, review embeds, maps and animation libraries can add network requests and JavaScript work. Remove tools that are no longer used. Load non-essential scripts only when needed and avoid loading the same library more than once. Keep essential actions—navigation, product selection and contact forms—usable even when an optional script fails.

Use fonts carefully

Each font family and weight can add another file to download. Limit the number of families and weights, use sensible fallbacks and consider self-hosting fonts where licensing and setup allow it. Check that text remains readable while the font loads; page content should not disappear or jump in a way that makes reading difficult.

Check caching and hosting settings

Static files such as CSS, JavaScript and images can often be cached for longer periods when file names change whenever the content changes. HTML documents usually need a different caching strategy so visitors receive updates. Configure compression and caching at the host or CDN level, then verify the response headers. Avoid applying multiple caching layers without understanding how they interact.

Test the mobile experience

Use a real phone or browser device emulation to check navigation, forms, buttons and large images. Look for content that shifts, menus that cover the page, buttons that are hard to tap and form fields that trigger the wrong keyboard. Performance is not only a score; it is how easily a visitor completes the task.

Make one group of changes at a time

Change a few related items, publish them and test again. This makes it easier to see whether the change helped. Keep a backup or version history before editing theme code, server settings or plugins. If a change improves one page but breaks another, roll it back and isolate the cause.

In summary Measure representative pages, fix the largest problems first and test again after each group of changes. The aim is a fast, stable experience—not a perfect score obtained at the expense of usability.

Talk to Code&Social about your project →

This article provides general information and reflects the guidance available when it was reviewed. Platform interfaces, prices and policies can change. Check the current documentation for the services you use.