Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I put images on a subdomain to speed up website loading?

Tags:

php

I read somewhere that browsers can only send a few concurrent request to resources on a domain. So if we split the resources across subdomains or may be domains .. will it speed up things?

Did you experiment something like this? What were the results or issues if any?

like image 351
user187580 Avatar asked Dec 02 '25 09:12

user187580


2 Answers

It definitely helps, but first start with css sprites. Also keep in mind that every additional domain will require DNS request and therefore slows-down!

Look at this great introduction on Yahoo: Performance Research, Part 4: Maximizing Parallel Downloads in the Carpool Lane

like image 70
Viliam Avatar answered Dec 04 '25 00:12

Viliam


If you are using cookies, then I would use another domain and have it setup not to accept any cookies. You could do this with css and javascript aswell.

http://sstatic.net/

like image 41
Daniel A. White Avatar answered Dec 03 '25 23:12

Daniel A. White



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!