Programming 516

(JavaScript) How to load local script files as fallback in cases where CDN are blocked/unavailable?

http://stackoverflow.com/questions/5257923/how-to-load-local-script-files-as-fallback-in-cases-where-cdn-are-blocked-unavai To confirm that cdn script loaded you can check for existence any variable/function this script defines, if it is undefined - then cdn failed and you need to load local script copy. On this principle are based solutions like that: (if there is no window.jQuery property defi..

Programming 2013.08.30