Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google cdn jQuery mobile

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?

like image 523
Phillip Senn Avatar asked Jun 21 '11 23:06

Phillip Senn


People also ask

Does jQueryUI work on mobile?

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.

What is difference between jQuery and jQuery Mobile?

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.

Is there a CDN for jQueryUI?

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.


1 Answers

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?

like image 179
Yi Jiang Avatar answered Sep 17 '22 08:09

Yi Jiang