does serving files like images via subdomain speed up loading speed. i read somewhere that static files like images, java script served via cookieless domain does mean something regarding website speed.

3 Answers 3


The HTTP/1.1 specs recommends that browsers only download two media items per domain in parallel, and for the most part browser makers are consistent with this standard. The media can consist of any of the following: html, css, images, javascript, flash, etc. Multiple domains can increase the number of synchronous downloads but it should probably limited to 2-4 domains.

There are many other aspects that are related to page speed that can solve different problems. If your problem is high latency using a CDN might be more helpful. Expires or a Cache-Control Header is good for content that doesn't change often.

I'll second Warner's suggestion of Yahoo's Best Practices for Speeding Up Your Web Sites. Install Firebug and Yslow and figure out exactly what your problem is? How to user firebug.


Only a little, I'd test it or only have it be one of many steps as I'd think the impact would be minimal. The idea is that the cookie will be sent for every request even though it's unnecessary for static content. Check out this document.


It may or may not help speed up your site. That's going to depend on a lot of factors.

However, it does open up a lot more flexibility for improving your performance. For instance, serving static data from another domain allows you to turn off cookies for that domain. It also allows you to trim other headers. It allows very generous site-wide cache expiration values. Etc, etc.

So while simply flipping the serve-from-subdomain bit will not necessarily offer a performance boost, it does open the door for some significant wins.

You must log in to answer this question.