Google cdn jQuery mobile
Asked Answered
S

1

6

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?

Sulfonation answered 21/6, 2011 at 23:16 Comment(1)
Side note jQm is on beta 1. As for you're question, does it work?Jongjongleur
C
9

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?

Chiffonier answered 22/6, 2011 at 3:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.