Google Hosted jQuery or Other Scripts not working – Google CDN Down

Google Hosted jQuery or Other Scripts not working – Google CDN Down

Today we’ve had a flood of errors with customer websites where google hosted jquery and other scripts from loading.

On most PC’s trying to access the Google Content Delivery Network (CDN) will give you a 404 error of the file not found!

If like me you have used Google’s DNS you might be confused because everything is working fine, however it seems OpenDNS has stopped access to the Google Datacenters due to a phishing scam??!?

Seriously? Good way to break half the internet guys!

OpenDNS Credit goes to:
https://twitter.com/#!/matbennett/status/154492602559897600/photo/1

Seems like I would suggest using a fallback script to local, this will then be bulletproof!

This sort of thing would work:


Or if you're using MooTools using Google Hoosted / CDN Try this:


 

7 Responses

  1. Mat says:

    Thanks for the credit Adam. We’re falling back to the Microsoft CDN when Google goes down. I’ve posted an example here: http://geekyscribbles.com/2012/01/google-cdn-gets-blocked-and-how-to-fix-the-problem/ *Should* work !

  2. DJB31st says:

    Thanks for the fix… OpenDNS FTW…

  3. Adam says:

    @Mat no problems on the credit you saved us all here a good arguement and a lot of time. Wasn’t even aware Microsoft Hosted jQuery etc! So thanks for that. Think either way will resort to a local hard copy anyway, always the safest way it seems.

  4. M1ke says:

    Thanks for blogging this Adam, I was beginning to think I was going crazy, no Twitter or Google searches were pulling anything up for it! I noticed it this morning on someone else’s site and sent them a bug report as I found that the 1.5 version of jQuery had the error but the 1.5.1 version did not. They reported they could not reproduce but changed anyway.

    We then noticed it on our sites using 1.7, and again switching to 1.7.1 fixed it. Thankfully it seems to be fixed so I don’t have to update every site but will implement the window.jQuery check to prevent future problems.

  5. […] Google’s treasure trove of useful scripts and apps for web developers. According to reports, a flood of errors hit pages that used Google-hosted jQuery and hundreds of thousands of sites fell […]

  6. […] Google’s treasure trove of useful scripts and apps for web developers. According to reports, a flood of errors hit pages that used Google-hosted jQuery and hundreds of thousands of sites fell over.Visitors to […]

  7. […] Google’s treasure trove of useful scripts and apps for web developers. According to reports, a flood of errors hit pages that used Google-hosted jQuery and hundreds of thousands of sites fell […]

Leave a Reply

Your email address will not be published. Required fields are marked *