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)
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 :()
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 :).
Thanks for the reply 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