Best of both worlds: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script>window.jQuery || document.write("<script src='{{=URL('static','js/jquery.js')}}'>\x3C/script>")</script>
Not sure the Jquery UI equivalent.