Our webpage has 3 google adsense ads on it along with a custom dojo build. Everything has been working great until I updated to Firefox 14. Now the page doesn’t load I’m guessing due to some javascript errors?
I’ve been trying to trial and error this issue. The best I have found is that when you paste adsense code into your page there is a script:
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
if you use openX:
<script type='text/javascript' src='http://d1.openx.org/ag.php'></script>
from what I can see, if this script is defined on the page more than once the page will not load correctly. This has been working in older versions of FireFox. It also works fine in chrome and IE.
Does anyone have any ideas what is going on or what changed?
Thanks
EDIT
I think this issue has to do with a custom build of dojo and the ad script tags. If I remove all the ads from my page dojo works correctly and my page is fine. I can also view all the ads on the page when dojo is not loaded. Does anyone know how I can debug this?
As of FireFox 14 something has changed as to what gets cached. If you edit the preferences (about:config in the url bar) and change the parameter
network.http.use-cacheto false the website will work correctly.I verified that this parameter is in firefox 13 and also set to true by default. Our site works in ff 13 so something changed with the way firefox caches resources.
EDIT
I also realized that trying to load my 3 google adsense ads at the same time as dojo was causing issues.
I used
dojo/domReady!before loading any dojo modules and this fixed any issues I was having. It will also work without changing the firefox network.http.use-cache parameter.