Google仍支持Google loader吗? [英] Is Google loader still supported by Google?
问题描述
我想在项目中使用google loader,但是在google loader脚本中,他们正在使用的jquery的最新版本为1.7.1.该版本大约在3年前问世.
I'd like to use google loader in a project but within the google loader script, the latest version of jquery they are using is version 1.7.1. That version came out like 3 years ago.
https://developers.google.com/loader/
页面底部显示了"2014年1月8日"的最新更新.仍然受支持吗?是的,我知道如何使用CDN直接链接到库.我只是对此有特殊用途.谢谢.
The bottom of the page says last updated on "January 8, 2014". Is it still supported? And yes, I know how to link directly to libraries using their CDN. I just have a particular use for this. Thanks.
推荐答案
我真的想要一个最新版本的google loader,因此我得到了原始版本,并进行了漂亮的打印,添加了最新版本的jquery并删除了所有内容(我没有使用过的框架(如scriptaculous等),然后将其最小化.
I really wanted an up to date version of google loader so I got the original, pretty printed it, added the latest versions of jquery and removed all the cruft (frameworks I wasn't using like scriptaculous, etc.) and then re-minified it.
这是完成的版本,支持jquery 1.11.0和2.1.0
Here is the finished version that supports jquery 1.11.0 and 2.1.0
https://github.com/nickfox/custom-google-loader
如果需要,可以随时获取.如果您对此有任何疑问,请告诉我.
Feel free to grab it if you need it. If you have any questions about it, let me know.
要使用它,只需将其安装在您的网站上并添加如下脚本:
To use it, just install it on your website and add the script like this:
<script src="custom-google-loader-1.0.0.min.js"></script>
并这样称呼它:
google.load('jquery', '1.11.0');
或用于地图:
google.load('maps', '3', {
other_params: 'sensor=false&libraries=adsense'
});
如果Google的任何人都可以回答原始问题,或者更好的是,更新您的google loader版本,那就太好了.
If anyone from Google can answer the original question, or better yet, update your version of google loader, that would be great.
这篇关于Google仍支持Google loader吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!