Home / Blog / Web Development / Performance
Why Is My Website Slow? Common Causes and Fixes
Web Development · Performance · 8 min read
A slow site usually has one main culprit. Learn how to find it and fix it in the right order.
Measure first, before changing anything
A page feels slow in different ways. Sometimes nothing appears for a while. Sometimes text appears, then the layout jumps as pictures arrive. Sometimes the page looks ready, but taps do nothing for a moment. Each pattern points to a different cause. Guessing at fixes wastes time. Measuring first tells you which problem to solve.
Load time is the span from a tap or click to the moment a page can be read and used. A speed test tool reports that span for a real page, not for a feeling. PageSpeed Insights is one free tool for this job. Run it on a phone setting first, because many visitors arrive on phones over mobile networks. Test in a private browser window too. Your own browser remembers your site, so it can look fast to you and slow to a first-time visitor.
Look at the report in plain terms. Find the largest files on the page. Find the scripts that run before anything shows. Find how long the server takes to answer. Those three clues cover most slow sites. Fix the biggest clue first, then test again. A single change at a time keeps the result clear.
Oversized images are the most common weight
Page weight is the total size of everything a page must download. Images often make up most of that weight. A photo straight from a phone camera is far larger than a web page needs. It may be several times wider than the space it fills on screen. The browser still downloads every pixel, even the ones nobody can see.
A gallery or slider makes this worse. Some sliders load every picture at once, including pictures hidden behind the first slide. A visitor on a slow connection waits for all of them before the page feels ready. Resize each picture to the width it actually displays at, with a little extra for sharp screens. Compress it before upload. Compression is a way of storing the same picture in fewer bytes, with little or no visible change. A modern format such as WebP usually stores a photo in fewer bytes than an older JPEG at similar quality.
Check the result by file, not by eye. A picture can look fine and still weigh far too much. Sort the page files by size and start with the heaviest picture. Fixing one heavy hero image, which is the large image at the top of a page, often helps more than trimming ten small icons.
Code that blocks the page from appearing
A browser reads a page from the top down. Some files stop that reading until they finish downloading. CSS is the code that styles a page, and JavaScript is the code that makes it interactive. When a large style file or script sits near the top of the page, the browser may wait before showing any text. This is called render-blocking code. Rendering is the browser turning code into something visible.
Unused code adds to the delay. Themes, page builders, and plugins often load code for features a page never uses. That code still downloads and still runs. Remove plugins you no longer need. Replace a heavy plugin with a simpler one when the simpler one does the same job. Keep the code that shapes the first screen, and move the rest later where the tool allows it.
Scripts that are not needed at once can often be deferred. Deferring means the browser downloads a script in the background and runs it after the page content is ready. A script that only powers a form near the bottom of a page does not need to hold up the headline. Ask what each script does before keeping it. If no one can answer, it is a candidate for removal.
A server that answers slowly
Every page starts with a request to a server. A server is the computer that stores a site and sends it out on request. Time to first byte is the wait from sending that request to receiving the first byte of the reply. A long wait here delays everything that follows. No amount of image trimming fixes a server that answers slowly.
Shared hosting is one common reason for a slow answer. On shared hosting, many sites run on one server and share its power. A busy neighbour can slow your site, and a traffic spike on your own site can push it past its limits. A database can also slow the answer. A database is the organised store behind a dynamic site, holding posts, products, and user records. A query that scans a huge table on every visit adds waiting to every page.
Caching shortens the wait. A cache is a stored ready-made copy of a page or file. With caching, the server hands out the copy instead of rebuilding the page from scratch for each visitor. Browser caching goes further. It lets a returning visitor reuse files already on their device, such as a logo or style file, instead of downloading them again. If the server still answers slowly after caching and trimming, the hosting plan itself is the likely limit.
Third-party scripts, fonts, and plugins add up quietly
A third-party script is code supplied by another company and loaded from that company's server. Chat boxes, review widgets, tracking tools, social feeds, and embedded maps all fall into this group. Each one adds its own download, and each one depends on another server answering quickly. A single slow widget can hold up a page that is otherwise light.
Web fonts behave the same way. A web font is a typeface downloaded with the page, rather than one already on the visitor's device. Two font families in a few weights are usually enough. Extra families and weights add downloads on every page, for a difference most visitors will never notice. Choose a system font, which is a typeface already on the device, for body text when the design allows it.
Audit these extras on a schedule, not once. New tools get added for a campaign and forgotten when the campaign ends. List every script on a slow page and ask what it earns. Keep the ones tied to a clear job, such as bookings or payments. Remove the rest, or load them only on the pages that use them. A contact-page map does not need to load on every blog post.
Fix in this order, then keep checking
Start with the heaviest files, then the code that blocks the first screen. Next, turn on caching and trim third-party scripts. Check the server answer last in this sequence, because a fast server cannot rescue a page weighed down by huge files, and a slow server will still show up once the page is light. Test after each step. One clear improvement beats five changes you cannot separate.
Distance matters too. A content delivery network, or CDN, keeps copies of a site's files on servers in many places. A visitor then downloads from a nearby copy instead of one far away. A CDN helps visitors far from the main server. It does not fix a slow database or a bloated page. Use it as the final layer, after the page itself is light.
Speed drifts over time. New pictures arrive at full size. New plugins get installed. New tracking scripts get pasted in. Recheck the slowest pages every few months, and check again after a redesign or a traffic jump. A site stays fast the same way it got fast: one file, one script, and one measurement at a time.
<script src="chat-widget.js" defer></script>
Questions readers ask
Why is my site fast on my computer but slow for visitors?
Your browser has often cached your site, so it reuses files instead of downloading them again. Your office or home connection may also be faster than a visitor's mobile connection. Test on a phone over mobile data, in a private window, to see closer to what a first-time visitor sees.
Does website speed affect search rankings?
Page experience is one factor search engines consider, but content relevance matters more. A fast page with thin content will not outrank a slower page that answers the question well. Speed matters most because waiting visitors leave, and visitors who leave never read, buy, or call.
Will a CDN fix a slow website?
A CDN shortens the distance files travel, which helps visitors far from the main server. It does not fix a slow server answer, a heavy page, or code that blocks the first screen. Trim the page and fix the server first, then add a CDN as a final layer.
Why is only one page on my site slow?
That page probably carries something the others do not. Look for a large image, an embedded video, a heavy gallery, or a script loaded only there. Compare its file list with a fast page on the same site. The difference usually names the cause.