You’ve spent a lot of time perfecting your site. You meticulously picked every font, positioned every image, and placed every analytics code. You’re ready to launch and show the world what you’ve got. You click the button and… nothing. The page isn’t loading. Did something crash? Check the coding and plug-ins. No, everything is ready to go. You try again. Still nothing. You wait 10, 20, 30 seconds. Finally you see the outline of your site start to appear on the screen. It’s just slow load times. Every web developer’s worst nightmare.
If you’re gaping and wondering how thirty seconds is a long time, consider this. A study by Kissmetrics found that 47% of consumers expect a site to load in less than 2 seconds. Even more telling, the same study shows that 30% of visitors will abandon your site completely after waiting only 6-10 seconds. Only 20% said they would wait longer than 20 seconds before abandoning. So if your page takes 30 seconds to load, you’re only getting a fraction of the visitors that might actually be visiting your site. How slow does 30 seconds seem now?
Don’t worry though, there a few things you can adjust on your site to easily shave seconds off your load time.
Server Performance
When a user attempts to visit your site, the browser (think Chrome, Safari, etc) first has to send a ping to your server to get all the information needed to load the site. Poor server performance means this process is going to take a while. Even if you have everything else on your site optimized for speed, a slow server will always result in a slow load speed.
This is likely a problem with your web host. If you have a cheap webhost, you’re probably sharing server space and resources with who knows how many other websites. Heavy traffic to your site, or any other site on the server, will slow everyone down because you’re waiting in the queue to get resources from the server.
Related: Best Practices for Structuring Your Website
The Solution: As compelling as cheap servers might be, opt to pay a little extra for better performance. Your visitors will thank you and in return they’ll actually come back to your site.
Bonus tip: keep an eye on your traffic! Your server can only handle so many requests and you may need to increase your space if you see a steep increase in visitor traffic.
Ad Network Code
Display ads seem to be a necessary evil in order to offer free content to your visitors, but it could be what is slowing you down. Most ad networks use Javascript to present their ads and if this code takes a while to load, it may block other elements on your site (like the actual content) from loading.
The Solution: If you need to keep the ads on your site, make sure you’ve implemented asynchronous delivery methods. Asynchronous loading allows other elements of your site to load at the same time as the Javascript. This multi-streamed approach means that a single slow element, like an ad, won’t block the rest of the site from getting to the user quickly.
Analytics Tags
Like ad networks, a lot of analytics tags are Javascript-based. Also like ad networks, most analytics providers offer asynchronous delivery. The biggest problem, however, will be using multiple analytics tags that may be measuring the same thing. This is inefficient and unnecessary.
The Solution: Review your analytics tags. Do you have multiple tags in place that measure the same thing? Parse these down and use only what you really need. This could save you a few vital seconds.