reduce-HTTP-requests

How to reduce HTTP requests on your website?

14 May 2015

Reduce HTTP requests if you want to optimize loading speed for a website. Typically an HTTP request is generated by prospective viewer’s browser for all files available to receive a homogenous webpage from hosting server. Let us review why actually reducing HTTP request is so crucial, what affects it has on overall performance of website and lastly view all possible methods to reduce HTTP requests for your website.

Browser pipelining and how it helps to reduce HTTP requests

HTTP-requests-for-broswers

In case a typical web page of your website consists of multiple HTML, CSS , JavaScript and Image files, then all these files needed to be loaded on your audience browser to view complete webpage and all its constituent files.

In order to boost speed of downloading of these pages, modern day browsers are downloading 4-5 of them at same time. This practice is called Pipelining.

For CSS files and JavaScript files that are loaded in the <head> section of your site, there is an issue that browser can’t start interpreting until it has all the files that “block” it from rendering. Easiest way out of this issue is to join both these files and practically reduce HTTP requests and then transfer files at once instead of doing it separately. This will reduce blocking of page and allow them to load out of <head> section and into the body of webpage

An example can be quoted of this merger for a typical JavaScript that adds some minor functionality to your site’s footer could easily be loaded in the last bit of your HTML, so it doesn’t block a browser from starting to render your page. It creates a huge impact on perceived load time rather than having any real effect on real load time. Perhaps lessening number of files and merging them into single one actually reduces load time as well, making websites to load faster.

Reducing the number of images

improve-HTTP-requests

In case you are using a complicated theme for your website it might be utilizing several background images. CSS spriting is a method that can help your website to load all its image files into a single file.

Reducing number of javascript & CSS files loaded

Install W3 Total Cache, and then go to the “Minify” page in it settings screen. On there, scroll down a bit, and you should see two sections “JavaScript” and, right below it, “Cascading Style Sheets”. In there, you can add your respective JS and CSS files, it’ll look something like this:

If you’ve added all your CSS and JS file, W3TC will combine these files into one and minify them, meaning it will remove comments, spacing and other unneeded stuff. So you could have 5 js files and combine them into one and that will effectively reduce HTTP requests to 4. it is an easy procure to reduce HTTP requests for wordpress and related website platforms.



Latest Posts


  • Mobile application development company in Dubai

    5 Things to Consider Before Hiring a Mobile Application Developer.

    08 October 2018

    Got a great idea for mobile app? That you believe will attract mobile users. Many…

  • web design company dubai

    How Website Redesign affects your Online Business?

    25 September 2018

    Websites often need to be redesigned for one reason or another, however, one thing most…

  • E Commerce web design Dubai

    6 Things to Consider before Starting E commerce Website.

    19 September 2018

    Many businessmen who are interested in selling their products online believe that they just need…

  • website-optimization images web design dubai

    How to Speed Up your Website through Image Optimization?

    12 September 2018

    You may have heard from many people who know (SEO) Search Engine Optimization techniques that…

  • Logo design trends for 2018

    Logo Design Trends for 2018 and Beyond.

    10 September 2018

    When you think of any brand what comes to your mind is their visual identity.…

  • Wordpress_trends 2018

    WordPress Web Design Trends For 2018.

    28 August 2018

    Looking back on 2017, I think it’s safe to say that it was a good…

  • How to make Website GDPR compliant

    How to Make your website GDPR Compliant.

    15 August 2018

    The GDPR or General data protection regulation came into effect from 25th May 2018.Whilst many…

  • web_access_web_design_dubai

    5 Simple Ways to Improve Website Accessibility.

    09 August 2018

    Website development projects require lot of resources. These are focused on many things like Content…

  • web design trends, web design dubai,

    Web Design Trends That Will Become Obsolete In 2020.

    06 August 2018

    Every industry is driven by some trends that are influenced by different elements. This is…

Trending Updates
Mobile application development company in Dubai

Got a great idea for mobile app? That you believe…

Read More
web design company dubai

Websites often need to be redesigned for one reason or…

Read More
Social Channels

Testimonials


  • I contacted Whitehats through their website and was immediately served by a customer service agent. I briefly explained my concern and gave my contact details. The same day in the afternoon I was contacted by an IT engineer and we scheduled a date for a visit to my apartment. Upon arrival the next day the engineer was polite, professional and confident and got the job done in an appropriate manner. I’m very satisfied with the service provided by Whitehats and plan to contact them in case of any future services. Therefore I would also recommend them for any IT related services.

    Saba Elahi

  • Whitehats cooperation with us has been indispensible, wherever we faced problems they were very fast in assessing and rectifying the things. Their continuous support has given us immense confidence for smooth functioning. During our office premises shifting, great efforts and support from you, we were able to start operations at the new premises without any downtime. They are like 24*7 support for us. Sachin Kansal | Manager (Compliance) and MLRO,

    State Bank of India

  • Professional, Quick response, Excellent service, Dedicated team! All you need in a great business and Whitehats provides it! Didier Sloukgi | Finance & Admin. Manager

    NORTHCORP

  • We have been dealing with Whitehats for more than 3 years and we are very happy with their service!! I can call them anytime :) if we have problems. Tina Tejones | Accountant General

    ACO

  • I have known White Hats for the past four years now. They are very reliable IT Company efficient in their work and you could have them at your beck and call anytime. Besides their staff are very co-operative and accommodating Renate Fernandes | Office Manager

    id-Studio