Simple tricks for speeding up your slow-loading site.
Beach balls. Spinners. Progress bars. Dancing frogs. Kitty gifs. No matter how standard or adorable the “loading” icon, it doesn’t help: there is simply nothing good about waiting for a site to appear.
The internet has come a long way since the days of dial-up, but that doesn’t mean everyone has good access. Many people are still stuck with poor connections — whether they’re in a rural area, or on a mobile device somewhere with a weak signal, or even just in a neighborhood where all the kids come home and eat up all the bandwidth every day at 4:00pm.
As responsible bloggers, you want to spare your readers every frustration, so it can be disheartening to hear from them that they cannot load your site; or that they can, but it takes two full minutes; or that none of your pictures ever seem to load.
Definition: “Cacheing” refers to your browser’s stored information from previous visits to a given website.
Typically, when you load a site for the first time, it takes the longest; in later visits to the same site, your browser will display previously cached (stored) elements, and it only needs to load whatever has changed on the site since your last visit.
We here at WordPress.com do our best behind the scenes to make sure we cache your site well and that all our themes load as snappily as possible, but it’s still the case that the more bells and whistles and images and slideshows you have on your site, the longer it will take to load.
But that doesn’t mean you have to limit yourself to a plain white site! Here are three simple steps you can take to make your site load quicker — no technical expertise required.
Optimize Your Images
The most likely culprit in a slow-loading site is a massive image file. If you resize an image after you’ve uploaded it to your post, that doesn’t necessarily decrease the actual file size. The image might be displaying on your site at a moderate size, but that whole big file is still slowly loading behind the scenes. Think of it kind of like an iceberg — only the top of it might be showing, but there’s still a giant ship sinker lurking under the water.
However, you can resize your image file before you ever upload it in the first place, without sacrificing image quality.
You don’t need any fancy software to compress your image files. If you have a Mac, you can do this in Preview, or if you’re on a PC, you can use Microsoft Office Picture Manager. There are also many free online services you can use, such as Picasa.
Tip: Background images are particularly notorious for being secret site slowers. Try a subtle, repeating background or a solid color background, rather than one massive image.
Spread Out Your Widgets
We all love widgets. You can have a whole toy chest of gadgets and gizmos in your sidebar, but guess what? All those loading social media streams and revolving gifs and doodads and whozits? They take a while to load. If you have a sidebar with five or six widgets, that’s not going to kill you, but start racking up those fun blog awards and badges, and before you know it, you’ve got more sidebar than blog.
However! You don’t have to choose between your widgets to fix this. Each widget has a visibility setting that lets you pick which specific pages or posts of your site it should display on. This way, you can put your most essential widgets on your front page, and move the others to load on any other view.
For example, if you have widgets specific to your travel posts (like a map of places you’ve been), you can select for those to display only in the sidebar of posts in the travel category. The combinations are endless!
Streamline Your Front Page
Personally, I like lots of big images, and I don’t like for people to have to click into them individually to see them. I like them to just load directly on the page. But once I’ve amassed 10 or so posts, each with five or so giant images, my blog gets pretty slow to load.
Anecdotally, I’ve found my site loads faster if I put my images into galleries. Then, interested readers can click on a gallery image to open it in a carousel, and then click through the images that way.
Tip: In general, moving things load more slowly than still things, and big things load more slowly than small things.
So, for example, you could assume that for media, the slowest to fastest display options might be: big slideshows > little slideshows > big single images > medium-sized galleries > smaller single images > thumbnails.
Another option, though, is simply to use the More tag to break up your posts so that only a small image and summary for each post displays on your site’s front page, and all those big images load only on the full post page. This means that any reader is only going to have to load five or so big images at a time — when they load a post — not all 50 when they load your front page.
Yet another trick is to limit the number of posts that show on your front page in the first place. You can control this in Settings→Reading. The default “posts per page” is 10, but you can lower that to five or even two.
Be careful, though: if new readers have to click around too much to get a sense of what your blog is all about, they’re less likely to follow you. You must find the balance between information (and media) overload right up front, and making readers work too hard to get to the meat of your site.
I know I promised simple solutions, but if you do feel up to getting a tiny bit more technical, most browsers include a tool that lets you see which specific elements on a given screen are slowest to load. The options are a bit different in each browser, but for example, in Chrome, if you go to View→Developer→Developer Tools, the developer console will open at the bottom or side of your screen. Click on the Network tab at the top of the console, and then load your site.
Tip: Do this test in an Incognito or Private Browsing window, since your browser has probably already cached your blog, and you want to see how long it takes to load if nothing is cached.
Once everything’s loaded, sort the Time column just as you would sort a column in an Excel spreadsheet — it will show everything on your blog from longest loading to shortest loading.
Here’s my blog:
This shows me that this image is the second slowest thing to load on my blog. So if I were having trouble with my site loading slowly, resizing this image would be a good first step.
And that’s it! Everything you need to know to ensure a smoking fast load time for your blog.
Do you have any other tips I missed for speeding up a slow-loading site?