On HTML5 Boilerplate they use this code for jQuery:
<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-...
What's more readable:
if (!window.jQuery) document.write(...);
or
window.jQuery || document.write(...);
ifstatement is almost TOO obvious; it can afford to teach you something at the same time.window.jQuery||document.write...for sake of brevity.