3 ms·
Or, much better, have a local fallback: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script>window.jQuery || doc
by Jakob 14y ago
Or, much better, have a local fallback:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/js/libs/jquery.1.7.2.min.js"><\/script>')</script>
- dylanpyle 14y agoYep, should have mentioned this, definitely a sensible idea - I believe this specific snippet is taken from HTML5 boilerplate. Google is blocked in some countries!
- degenerate 14y agoI didn't know a fallback could be so simple. Thank you x 3 (the number of scripts I remotely load)