views:

17

answers:

1

I've a blog where I run third party ads and I refer them from my page similar to following format

http://www.<advertising_network>.com/delivery/fp?u=<username>&i=<adv>_region_11111&z=11111&n=3

If I want to show these ads at three places I have to place three such lines on my code and then browser makes three different request to same code each time with different region code. How can I combine these to optimize page loads on my site?

+1  A: 

I guess it kind of depends on what the area code changes.

Is it parsed via JavaScript, or by a server side language?

You'll be out of luck if it is a server side language.

It doesn't look like from a quick look you have many options. I don't think it should add too much overhead, it is only 2kB and only 3 more HTTP requests (and it is on a different domain, so it should download it in parallel to your own site assets). It is also gzipped.

alex
Mayur