How to make a website load faster: 10 proven fixes
Learn how to make a website load faster: test your speed, compress images, cut code and scripts, use caching and a CDN, and fix slow hosting.
To make a website load faster, first test it with PageSpeed Insights to find the cause. Then compress and resize images, minify and defer code, remove unused scripts, and enable caching and a CDN. If the server responds slowly, move to faster hosting. Retest after each change.
Website speed optimisation is the process of reducing how long a web page takes to load and become usable, which improves user experience and search visibility as well as conversions.
At a glance
- Core Web Vitals are Google’s measures of real-world page experience, covering loading, interactivity and visual stability, as set out by web.dev.
- Images are often among the largest files on a page; WebP or AVIF, resized to display size, cut file weight, according to web.dev.
- Minifying CSS and JavaScript and removing unused CSS reduces the data the browser must download.
- Common causes of slow pages are slow hosting, large images, too much JavaScript, too many requests and slow database queries.
- Free tools to measure speed include PageSpeed Insights, Lighthouse and GTmetrix.
How do I test why my website is slow?
Run your key pages through PageSpeed Insights and note whether the problem is the server, the page weight or scripts, before changing anything. Guessing wastes time, and some popular fixes do nothing for your particular site.
Pick the right pages
Test at least three: the homepage, a key service or product page and a blog page. Each may be built from a different template. So each can fail for a different reason. Look at the mobile results first, because mobile is where slow pages hurt most.
Understand lab data and field data
Lab data comes from a simulated test run on one device and connection. Lighthouse produces it. Field data comes from real visitors using Chrome over the previous weeks, and PageSpeed Insights shows it at the top of the report when enough people have visited. Lab data is good for finding faults and checking a fix. Field data tells you what your visitors actually experience.
Choose your tools
- PageSpeed Insights: free, shows both lab and field data.
- Lighthouse in Chrome DevTools: runs the same audit in your browser.
- GTmetrix: a waterfall chart showing every file and how long it took.
- WebPageTest: detailed tests from different locations and connection speeds.
Record a baseline and find the cause
Save your scores and load times before you touch anything. That way you can prove each fix worked. Then work out which of three things is responsible: the site itself (heavy images, code, scripts), the host (a slow server response) or the visitor’s own connection. Only the first two are yours to fix.
What is a good website loading speed?
A good loading speed means passing Google’s Core Web Vitals on mobile: a fast main content load, quick response to taps and no layout jumping. There are three measures, and each has a published threshold.
| Measure | What it means | Good threshold |
|---|---|---|
| Largest Contentful Paint (LCP) | How long the biggest visible element, often a hero image or headline, takes to appear | 2.5 seconds or less |
| Interaction to Next Paint (INP) | How quickly the page responds when someone taps, clicks or types | 200 milliseconds or less |
| Cumulative Layout Shift (CLS) | How much the page jumps around while loading | 0.1 or less |
These are the thresholds Google publishes on web.dev. Check that page before you set targets, as Google can revise them. INP replaced the older First Input Delay measure, and it looks at responsiveness across the whole visit rather than only the first tap.
So what is the ideal loading speed? There is no single magic number, but an LCP under 2.5 seconds on mobile is the clearest target. Speed is one factor in search rankings and a clear factor in whether visitors stay and buy, but it guarantees neither. A fast page with weak content will still struggle. It matters most on phones and slower connections, where every extra kilobyte is felt.
Why is my website so slow to load?
The usual culprits are slow hosting, oversized images, too much JavaScript, too many requests and slow database queries, as Cloudflare’s troubleshooting guide lists them. Your test results will point to which one applies.
| Cause | Symptom in the test | Fix | Who fixes it |
|---|---|---|---|
| Slow hosting | High server response time (TTFB) before anything loads | Better hosting, server caching | You or your host |
| Oversized images | Slow LCP, “properly size images” warning | Resize, compress, convert to WebP or AVIF | You |
| Too much JavaScript | Poor INP, “reduce unused JavaScript” | Remove, defer or split scripts | Developer |
| Too many requests | Long waterfall with dozens of files | Combine, remove or defer files | You or developer |
| Slow database queries | Slow server response on dynamic pages | Clean up and optimise queries | Developer |
Plugin and theme bloat
On WordPress and ecommerce platforms, every plugin can add its own CSS, JavaScript and database calls, even on pages that never use it. A product page for a fitness brand might load a booking widget, a reviews app, a pop-up tool and a heavy theme all at once. Trade sites often add quote forms, galleries and map embeds the same way. Look at the waterfall to see which files come from which plugin.
Third-party scripts
Chat widgets, tracking tags, ad pixels and web fonts all load from other companies’ servers, which you cannot speed up directly. Keep only the ones you genuinely use and delay the rest until after the page has loaded.
Slow server response
Time to first byte (TTFB) is how long the browser waits for the server to start sending the page. If it is high before any images or scripts have even begun, the cause is the server, not the page design.
How do I make images and code load faster?
Convert images to WebP or AVIF, resize them to the size displayed, then minify CSS and JavaScript and defer anything not needed for first view. Images are often among the largest files on a page, so start there.

Image steps
- Choose a modern format. WebP or AVIF files are usually much smaller than older JPEG or PNG files at similar quality.
- Resize to the displayed size. A 4000 pixel photo shown in a 800 pixel column wastes data.
- Compress sensibly, checking the result still looks sharp.
- Lazy load images below the fold, meaning they load only as the visitor scrolls towards them.
- Never lazy load the main hero image. It is usually the LCP element, and delaying it makes your score worse.
Minify and remove unused code
Minifying strips spaces and comments from CSS and JavaScript so files are smaller. Removing unused CSS and JavaScript cuts the data the browser must download, as web.dev’s guide to resource loading explains. Many themes ship with far more code than a page needs.
Async versus defer
Both attributes stop a script blocking the page. Async downloads the script and runs it as soon as it arrives, in any order, which suits independent scripts such as analytics. Defer waits until the page has been read, then runs scripts in order, which suits scripts that depend on each other.
Critical CSS and fonts
Inlining critical CSS means placing the styles needed for the first screen directly in the page, so it can draw immediately. Avoid CSS @import, because it makes the browser fetch files one after another. For fonts, limit the number of families and weights, since each one is another download.
How do caching, a CDN and hosting speed up a website?
Caching and a CDN serve repeat and distant visitors faster, while better hosting cuts the time the server takes to respond. They fix different problems, so check your test results first.
Caching
Browser caching tells a visitor’s device to keep files such as logos and stylesheets, so the second page they view loads faster. Server or page caching stores a ready-made copy of each page, so the server does not rebuild it for every visit.
CDN
A content delivery network (CDN) keeps copies of your files on servers around the world and serves each visitor from a nearby one. It helps most if you have international visitors, for example a UK ecommerce store shipping abroad.
Hosting and location
If your audience is mainly in the UK, UK-based hosting keeps the physical distance short. We are based in Leeds and work with UK businesses, so this is the setup we would look at first for a UK-focused site. Cheap shared hosting can be the bottleneck: if TTFB stays high after caching is on, the server is likely the limit and an upgrade is the next step.
Small extras
- Reduce redirects, because each one adds a wait before the page starts loading.
- Fix broken links and 404 errors, which waste requests and frustrate visitors.
- On dynamic sites, clean up the database by removing old revisions, spam and expired data.
When should you get a developer to speed up your website?
Bring in a developer when fixes like plugins and compression do not move your scores, or when the problem is the build itself. Images, caching and removing unused plugins are jobs most site owners can do. Rewriting code is not.
Signs the problem is deeper
- Scores stay poor after you have optimised images and enabled caching.
- TTFB is high even on a good host, pointing to slow queries or inefficient code.
- INP is poor because heavy JavaScript blocks the page.
- A theme or platform loads far more than it needs and cannot be configured away.
How we can help
PS has traded since 2009 and builds bespoke, complex websites, which is where speed problems often start. Our experienced in-house team delivers the work, and customers choose us for outstanding customer service and high quality designs. Our customers include ecommerce, trade and fitness brands.
Speed is ongoing
A fast site can slow down again after a redesign, a new plugin or a new tracking tag. Retest after every launch and change.
Priority checklist
- Test key pages on mobile and record a baseline.
- Fix oversized images and the hero image first.
- Remove unused plugins and third-party scripts.
- Minify and defer CSS and JavaScript.
- Turn on caching and consider a CDN.
- Check TTFB and upgrade hosting if needed.
- Retest, and call in a developer if scores stay stuck.
If your site is still slow after these steps, get in touch with PS and our Leeds team will take a look.
Frequently asked questions
Does website speed affect SEO?
Website speed is one factor Google considers through Core Web Vitals, so it can influence search visibility. It does not guarantee rankings, but slow pages also lose visitors, which hurts conversions.
How fast should a website load on mobile?
A website should reach a Largest Contentful Paint of 2.5 seconds or less on mobile, with INP at 200 milliseconds or less and CLS at 0.1 or less. Check web.dev for the latest thresholds.
Does a CDN make my website faster?
A CDN makes a website faster for visitors far from your server by serving files from a nearby location. It helps least when all your visitors are close to your host and the slowness comes from heavy code.
How do I speed up a WordPress website?
To speed up a WordPress website, test first, then compress and resize images, remove unused plugins, enable caching and check your hosting. A lightweight theme also helps.
What is the fastest way to check my website speed?
The fastest way to check website speed is to paste your page address into PageSpeed Insights. It is free and shows both lab and real-user data.
Do plugins slow down a website?
Plugins can slow down a website when they add extra scripts, styles and database queries. Remove any you do not use and check the waterfall to see which ones cost the most.
How often should I test my website speed?
Test your website speed after every significant change, such as a redesign, new plugin or tracking tag. Beyond that, a regular check each month or quarter catches gradual slowdowns.