Only one resource, yet shouldn't get?

Hi guys,

This isn’t really “css” related, but I’m pretty sure it has something to do with the CSS :confused:

http://www.cancunandrivieramaya.com/test.html

I keep getting this stupid error - but I can’t work out where its coming from:

Minimize DNS lookups
The domains of the following urls only serve one resource each. If possible, avoid the extra DNS lookups by serving these resources from existing domains.

* http://www.cancunandrivieramaya.com/test.html

Its been driving me nuts for hours - and I still can’t find the issue. I’ve checked all the HTML + the CSS/JS files (all images etc are accessed via carmstatic.com, so we can avoid the “serve files from a cookieless domain”), but can’t see anything - am I missing something stupid?

BTW, I’ve even gone as far as seeing if putting a "blank"pixel image at the bottom of the page helps (to trick it into thinking that more than 1 resource is coming from the domain)

TIA

Andy

Well AJAx doesn’t because it’s just Javascript, but you could use PHP and feed the PHP to AJAX.

But we are overthinking it now aren’t we :wink:

Ah ok - so not a lot I can do about it =) (we obviously can’t have it served from the other domain, i.e carmstatic.com, as AJAX doesn’t let you do cross-domain accessing, which is a bit of a sod :()

Cheers

Andy

The javascript will use that relative path based on where the Javascript file is, aka if you call a JS file at http://www.sitehere.com/js/thingy.js, then it will go and try and access the relative path from that location, thus the main domain :).

Hi,

Thanks for the reply :slight_smile: I finally tracked it down to this code:

function load_top_ad() {
	var thehtml = jQuery.ajax({
	  url: '/cgi-bin/gallery/ad_frame.cgi?area=Top;do=',
	  async: false
	 }).responseText;
	jQuery('#banner_ad').html(thehtml);
}

Even though using a relative path, it still seems to think that its actually accessing the main domain.

Ah well - not a major biggie (95/100 isn’t exactly a bad score =)) … and using the AJAX for the banner also lowers the page loadtime, which is one of the main things we were aiming for :slight_smile:

Cheers

Andy

This has nothing to do with the CSS, CSS doesn’t mess with the server and DNS.

This is probably apache or some other server side thing…I don’t know what it wotuld be but I know for sure it isn’t CSS :slight_smile: