Current time: 12-08-2019, 05:02 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to reduce number of HTTP requests for images
01-16-2015, 06:25 PM
Post: #1
How to reduce number of HTTP requests for images
Hi everyone,

I have an e-commerce website where a majority of my pages have a lot of images. This is increasing my number of HTTP requests and hence taking a huge load time. Is there a way to reduce the requests ? I was thinking on the lines of using a CDN for all the image requests ? will it help

Thanks
Find all posts by this user
Quote this message in a reply
01-17-2015, 10:03 AM
Post: #2
RE: How to reduce number of HTTP requests for images
Hi,
could be a good way loading images from an other domain - because the amount of parallel requests will be higher if you load images from an other domain. CDN esp is better if your users are from different countries.
But if you have "long pages" it could be first an easy way to try "lazy loading". It is a common use on pages with much images. So first the amount of request is low until the user scrolls down-then the images will load.
I use this jquery plugin : http://github.com/eisbehr-/jquery.lazy
Best is you show here your test-results from webpagetest.org.
because it will shows the "bootlenecks" and best way to get better results.
Find all posts by this user
Quote this message in a reply
01-20-2015, 05:00 AM
Post: #3
RE: How to reduce number of HTTP requests for images
Hi,
Domain sharding has it's drawbacks since there are additional overhead on the tcp and http connections and would not reduce the number of http requests. SDPY would probably help since your are multiplexing the connections. Instead of reducing the number of http requests, optimizing the images would be a better choice (e.g. transcoding). I agree with kayferdinand in that it would be good to see the WPT results.
Find all posts by this user
Quote this message in a reply
01-21-2015, 01:19 AM
Post: #4
RE: How to reduce number of HTTP requests for images
(01-16-2015 06:25 PM)harshpoddar Wrote:  Hi everyone,

I have an e-commerce website where a majority of my pages have a lot of images. This is increasing my number of HTTP requests and hence taking a huge load time. Is there a way to reduce the requests ? I was thinking on the lines of using a CDN for all the image requests ? will it help

Thanks


I had the same problem with our website (cornhole boards). I created my own CDN script that does lossless compression for PNG & JPG's as well as client side and server side caching. My site now has straight A's for the report, excluding the CDN because it's not known.

We use very high quality and large photos and was pushing near 8Mb's on a page load before optimization. Take a look, www.cornholeboards.us
Find all posts by this user
Quote this message in a reply
01-22-2015, 05:54 AM (This post was last modified: 01-22-2015 05:54 AM by ajm_76.)
Post: #5
RE: How to reduce number of HTTP requests for images
(01-16-2015 06:25 PM)harshpoddar Wrote:  Hi everyone,

I have an e-commerce website where a majority of my pages have a lot of images. This is increasing my number of HTTP requests and hence taking a huge load time. Is there a way to reduce the requests ? I was thinking on the lines of using a CDN for all the image requests ? will it help

Thanks

Hi harshpoddar,

As the others have noted, absent test results to be reviewed, most of what you'll get regarding answers/responses will be conjecture and/or reading-into your post (as none of us are have been provided with actionable particulars).

That said, and to address the specific information provided in your post, reducing the HTTP requests for your site's images may or may not do anything for your website (it's relative). The primary reason being that all modern browsers can handle numerous HTTP requests at once and in parallel. So: so long as you have other things in proper order, a lot of images, and therefore HTTP requests derived therefrom, ought not be a problem (and *can* add to UX [i.e. user experience] -- also relative...).

You are certainly on the general right track with the idea of using a CDN for your site's images (i.e. image HTTP requests); but, it is quite literally never a bad idea to make use of an effective CDN for any of a website's static resources, which images are.

Lazy loading images is, in our opinion, virtually never a bad idea regardless of where you get your traffic from. But, if the majority of your site's visitors come by way of high-latency devices (i.e. mobiles, tablets), then lazy-loading is arguably required for a high-quality UX (insofar as website speed equals User Experience.

Best,
AJ
Managing Partner
WpFASTER

Make your WordPress website or blog not just faster & not merely fast, but one of the fastest sites in the ENTIRE WORLD.

Performance. Speed. Get Some. WpFASTER!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)