Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Check if Bootstrap is loaded #111
My fallback requires Jquery or Zepto to work. My script is a bit pointless (only for the paranoid), since I have never had any issues with NetDNA CDN or bootstrapcdn.com.
If you are going to be this paranoid, maybe a good idea is to host all your static content on NetDNA and then fallback all css / js / img files with local items. @asapostolov let me know if this is what you are trying to do and ill write a function that forces fallbacks if the CDN script is unreachable.
Another option would be to use your own DNS failover and CDN account. Say you have yourzone.netdnacdn.com but are worried about it failing. You could sign up for a service such as DNSmadeEasy.com which supports DNS failover. If yourzone.netdnacdn.com (cname) fails it can then covert the cname to pull from your server. Zerigo DNS also has this functionality.