I have a website (http://dev2.liquor.com) that loads very quickly when I remove the advertisers and tracking scripts our partners give us. Of course we need to reduce page load time from 6 seconds to 1 second, and I see that it is 100% all of our external js files for partner tracking, ads, etc.
I have been banging my head against the wall trying to find alternate ways to load/compress/serve the multitude of js the user needs to download. I can easily compress/minify mine, but someone else's that is not on our server is becoming hard to do so.
The best I can do is get a C on YSlow, and each suggestion they give me pertains to my stupid tracking js scripts!
I think the main problem is the tracking (http://pastebin.com/faMDGrrs) which I can see in the status bar is causing the site to load very long. Thoughts on how to deal with that?
Is it even possible to manage third party scripts in my website?
Any help would be greatly appreciated.
Here's some client-side JS I threw together (based upon the Google Analytics asynchronous tracking snippet) which would allow you to load external Javascripts asynchronously:
Putting third party scripts into an
iframe
could be an alternative.Common sense is that an iframe has a high cost (in terms of load), but if it's cost is less then the cost of loading third party elements, you could give it a try.
You probably you did most of things that are discribed here, but it's a good resource anyway.