How to load fall back for different jQuery plugins when CDN is down

113 Views Asked by At

Ok, I am going through one tutorial and it teaches that if jQuery CDN is down use below code as fallback

<script>
window.jQuery || document.write('Actual Location of jQuery in the VS solution file')
</script>

But I am confused how does the name window.jQuery is determined for different jQuery Plugins. I mean what if CDN is down for jQuery Confirm PlugIn. Then what shall I put instead of window.jQuery. Please guide me.

Does the name window.jQuery accounts for all the different jQuery plugins? I doubt it though.

For instance: Since every plugin has it's own CDN. What if the CDN for jQuery is wokring fine but the CDN for some other jQuery plugin is down.

0

There are 0 best solutions below