allow multiple subdomains for image parallel downloads

soaringeagle
@soaringeagle
8 years ago
3,304 posts
I don't know php too well, but i believe this should be an easy thing to do
create a module called image parellelzation, or simply add the ability to the image core
next allow the addition of multiple image subdomains, (i believe in the header you can prefetch all the dns for each)
on your server create any number of image1.yourdomain image2.yourdomain etc
on page load, it should automaticly determine the optimal number of hostnames to serve images from, and serve from image1 through image(whatever max number of subdomains were added, or optimal number of hostnames) then devide the images up and serve from that host name
all subdomains would point to the same server space, its simply a way to allow more images to be downloaded in parallel to reduce wait times wich can be 80-95% of entire download time when theres more then a dozen images on a page (like profile pictures)

typically only 2 objects are downloaded at a time from 1 hostname, spreading that workload over multiple hostnames even on the same server means that instead of 2 then wait for 2 more then wait for 2 more etc etc 40 or 50 or more objects can all be downloaded at the same time eliminating much of the wait time and greatly speeding up downloads of the page as a whole
pages with fewer objects and especialy images might not see such an increase
but image heavy sites will load far faster this way.

basicly the php would have to get the total number of images on a page, and assign the url image1.domain to 1st 2 then image2.domain to 2nd 2 etc

i hope this makes sense
this is a good explanation here
http://yuiblog.com/blog/2007/04/11/performance-research-part-4/



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 07/11/16 05:45:11AM
brian
@brian
8 years ago
10,148 posts
This does not make sense any longer with things moving to HTTP/2, and is not something we'd likely do in the meantime.

Sorry!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
8 years ago
3,304 posts
fair enough, i wasn't sure how that was changed in http2 i just know a lot of speed tests still make that recomendation


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
8 years ago
10,148 posts
soaringeagle:
fair enough, i wasn't sure how that was changed in http2 i just know a lot of speed tests still make that recomendation

Yeah - those will all be outdated once HTTP/2 starts gaining ground, since multiple domains is slower under HTTP/2.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
8 years ago
3,304 posts
are there swecurity risks/ looking at litespeed tuning config theres enable http/2 over clearty;pe non ssl connections disabled by default
i enabled it but worry there maybe a reason its only enabled on ssl by defgault


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
8 years ago
10,148 posts
soaringeagle:
are there swecurity risks/ looking at litespeed tuning config theres enable http/2 over clearty;pe non ssl connections disabled by default
i enabled it but worry there maybe a reason its only enabled on ssl by defgault

I'm not sure about that unfortunately - sorry!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags