开发者

Why is Google autoload loading more than what I'm telling it too?

I want to autoload Google Maps 3, JQuery core (1.3.2) and JQuery UI (1.7.2).

So I am using the following URL:

http://www.google.com/jsapi?autoload={
"modules":[
{name:"maps",version:3,other_params:"sensor=false"},
{"name":"jquery","vers开发者_运维知识库ion":"1.3.2"},
{"name":"jqueryui","version":"1.7.2"}
]}

However, if you go to that URL, it appears that in addition to what I want to load, it's also loading: scriptaculous, feeds, and books

Any ideas when the Google autoload is loading more than what I'm telling it to load?


You can always load the JavaScript files directly from google. See

http://code.google.com/apis/ajaxlibs/documentation/

For the above it would be like

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"
    type="text/javascript"></script>

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"
    type="text/javascript"></script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜