This works:
<script src="http://code.jquery.com/jquery-1.5.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
But I prefer the syntax:
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1", {uncompressed:true});
</script>
While developing.
Q: Can I load jQuery mobile using the google.load command?
jQuery Mobile is a touch-optimized HTML5 UI development framework that allows you to develop cross platform websites as well as apps which work across all popular smart-phones, tablets and desktops.
jQuery and jQueryUI are both designed to be 'added' to your site (desktop or mobile) - if you want to add a particular feature, jQuery or jQueryUI might be able to help. jQuery Mobile, however, is a full framework. It's intended to be your starting point for a mobile site.
CDN is a technical abbreviation for Content Delivery Network. A CDN is a network of servers that distribute information to websites. A jQuery UI CDN therefore enables developers to use jQuery in their websites without having to install it in the website's folder.
Presumably the Google Libraries API will only support libraies listed in its documentation, seeing that the Google Loader API does not contain any information on including your own library links.
Therefore the conclusion would be that there is currently no way to include jQuery Mobile with the Google Loader. Have you considered alternatives such as head.js?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With