为什么谷歌自动加载比我说的更多呢?

时间:2010-01-05 06:16:20

标签: jquery html

我想自动加载Google Maps 3,JQuery核心(1.3.2)和JQuery UI(1.7.2)。

所以我使用以下网址:

http://www.google.com/jsapi?autoload={
"modules":[
{name:"maps",version:3,other_params:"sensor=false"},
{"name":"jquery","version":"1.3.2"},
{"name":"jqueryui","version":"1.7.2"}
]}

但是,如果您转到该网址,除了我要加载的内容之外,它还会加载:scriptaculous,feeds和books

当Google自动加载加载的内容超出我要加载的内容时,有什么想法吗?

1 个答案:

答案 0 :(得分:0)

您始终可以直接从Google加载JavaScript文件。参见

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

对于上述内容,它就像是

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