PDA

View Full Version : Split Components Across Domains


o0O0o.o0O0o
11-18-2009, 02:55 AM
This is from the yahoo developer network

Splitting components allows you to maximize parallel downloads. Make sure you're using not more than 2-4 domains because of the DNS lookup penalty. For example, you can host your HTML and dynamic content on www.example.org and split static components between static1.example.org and static2.example.org

I could not undertand it properly.

So it means instead of using

href="/images/abc.jpg"

i should use

href="static.example.com/abc.jpg"

and for scripts i should use

href="dynamic.example.com/javascript.js"

djm0219
11-18-2009, 12:20 PM
Basically yes. But unless a site is very very busy it isn't going to make any difference really.