Is Google loader still supported by Google?

大城市里の小女人 提交于 2019-12-12 18:12:48

问题


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/

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.


回答1:


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.

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>

and call it like this:

google.load('jquery', '1.11.0');

or this for maps:

google.load('maps', '3', {
    other_params: 'sensor=false&libraries=adsense'
});

If anyone from Google can answer the original question, or better yet, update your version of google loader, that would be great.



来源:https://stackoverflow.com/questions/22603820/is-google-loader-still-supported-by-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!