Performance. Many of your visitors will already have it in their cache.
That said, I'm open to the idea that I'm being extremely foolish about this ;)
<script id="jquery" src="http://code.google.com/jquery.js"></script>
<script>
if (jQuery == undefined) {
document.querySelector("#jquery").src = 'Backup CDN';
}
</script>
That should work, in theory, if not then just remove script#jquery, create a new one and append to the document before executing any script(s). <!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.4.2.js"%3E%3C/script%3E'))</script>