How To Reduce HTTP Requests To Speed Up Your Site
by Louis Kingston
Most of us are blissfully unaware of the technical feats happening in the background when we browse to a webpage. We typically only notice that there is some technical failure when the site we’re visiting takes such a long time to load that we get impatient and click refresh or the site outright displays an error message. In actuality, there’s a lot that goes on between your web browser and the web page you’re visiting.
For digital marketers, it might seem that their expertise only needs to be focused on Search Engine Optimization, content marketing, and Pay Per Click. But, their hard work is never going to see the page one light of day on the Search Engine Results pages if the page’s load speed is extremely slow. Visitors will just click away to a site that loads quickly and without any errors.
In Pursuit of a Better User Experience
One of the main reasons for a slow site speed is a high number of HTTP (Hyper Text Transfer Protocol) requests.
In a nutshell, an HTTP request entails the following procedure when you decide to visit a website:
- Your web browser communicates with the web server that hosts the relevant site that you are trying to visit.
- The web browser asks the host servers to send it all the files that make up the page you’re visiting. This includes all of the text, images, and multimedia.
- The host then acknowledges your web browser’s request, sending over the files that make up the webpage, which are rendered as they’re received within your web browser.
Are You Taking Too Long to Respond?
Imagine it is your website that is being visited. Before the files can display on the visitor’s browser, a separate HTTP request will be made for every file that makes up that pages (images, javascripts, style sheets, etc). There can be many large files that can take an extremely long time to download. Most great sites these days have data that carry high definition images and can result in slow load times. This makes the Google Algorithm unhappy, and you get penalized. This can cause you to lose your top spot on the search engine results page. On top of losing position in search results, it’s shown that your potential visitors will not stick around to wait for a slow page to load, and you can say goodbye to conversions. In fact, 47% of visitors to a site want to see a load speed of fewer than 2 seconds! (KISSmetrics report). After three seconds, you can expect 40% of people to hightail it out of there to find a faster solution.
The ideal number of files that make up a single web page is 10-30 files, but these days we see the number of HTTP requests balloon to over 100 per page on some sites!
How Can You Lower Your HTTP Requests?
- Check your website’s current HTTP request number to see what is taking the longest to load. This can be done via AlertBot’s detailed and easy-to-read waterfall chart.
- Eliminate all large, unnecessary images that aren’t contributing any value.
- Optimize your remaining images by reducing the file size. Many servers automatically compress images for you, but you must double check.
- Video and other social media integration tools could be adding seconds to your load speed, and then you will need to decide whether they are essential to your site.
- Remove JavaScript, or at the very least make it asynchronous. A browser will always load an entire JavaScript file before loading the rest of the page. This can take up a significant amount of the load speed lag.
- Ask your developer to combine CSS files to increase load speed. You can also use CSS Sprites to put all your image requests into just one.
Sounds technical, right?
AlertBot can provide you with the tools you need to pinpoint performance issues and help set you on the right path to better website performance. AlertBot offers a Free 14-day trial (without collecting any billing info). Give us a try!
Louis is a writer, author, and avid film fan. He has been writing professionally for tech blogs and local organizations for over a decade. Louis currently resides in Allentown, PA, with his wife and their German Shepherd Einstein, where he writes articles for InfoGenius, Inc, and overthinks the mythos of his favorite fandoms.