jQuery CDN having SSL issues
It is too bad that the HTML standard has no built in way to fallback.<p>They&#x27;ve added a cryptographic hash&#x2F;integrity and the async&#x2F;defer attributes to the script tag, but something as essential as a fallback if a script or stylesheet fails to load (which the browser is best placed to know), has no built in functionality.<p>Instead you&#x27;re left doing JavaScript tricks which for missing CSS gets a little ugly[0]. But CDN with local fallback (or visa versa) has been common now for decades but yet no official support at all. Honestly if the integrity attribute is specified the browser should just be able to fall back to a cached copy it has (e.g. jquery.1.2.3.min.js has a crypto hash of ABC123, and I have that file already).<p>[0] <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;7383163&#x2F;how-to-fallback-to-local-stylesheet-not-script-if-cdn-fails" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;7383163&#x2F;how-to-fallback-...</a>