4

I know that: "browsers can download two components in parallel per hostname" example www.example.com & www.example.org

My question is: can browsers download two components in parallel per subdomain ? www.example.com & images.example.com

MSalters
  • 173,980
  • 10
  • 155
  • 350
Amr Elgarhy
  • 66,568
  • 69
  • 184
  • 301

2 Answers2

2

Yes they can. I've just done it myself with a Ruby on Rails application using Rails' built-in support for multiple asset hosts. They're all subdomains e.g. asset0.example.com, asset1.example.com etc.

John Topley
  • 113,588
  • 46
  • 195
  • 237
2

The rule is actually weaker, "should not download more than 2". And yes, that's per hostname. www.example.com & images.example.com are two hostnames. However, there is no guarantee that browsers will actually use 4 concurrent downloads.

John Topley
  • 113,588
  • 46
  • 195
  • 237
MSalters
  • 173,980
  • 10
  • 155
  • 350