Google cdn jQuery mobile

It 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> 

Under development.

Q: Can I download jQuery mobile using google.load command?

+6
source share
1 answer

Presumably the Google API will only support the libraies listed in its documentation , seeing that the Google Loader API does not contain any information about including your own library links.

Therefore, the conclusion will be that there is currently no way to enable jQuery Mobile with Google Loader. Have you considered alternatives like head.js ?

+9
source

Source: https://habr.com/ru/post/891061/


All Articles