来自外部服务器的文件(jQuery,jQuery UI,原型) [英] Files (jQuery, jQuery UI, prototype) from external server

查看:162
本文介绍了来自外部服务器的文件(jQuery,jQuery UI,原型)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我必须在其他(让我们说说10个)其他css/js文件中加载例如jquery.js文件,什么是更好的方法?

If I have to load for example jquery.js file among some (let's tell about 10) other css / js files, what is a better approach?

使用google.load()方法可让您的应用程序高速,并可以全局访问越来越多的最受欢迎的开源JavaScript库列表"

"Using the google.load() method gives your application high speed and global access to a growing list of the most popular, open-source JavaScript libraries"

推荐答案

使用Google.由于很多人都在使用它,因此很有可能已经将其缓存在客户端计算机上,因此它可能会更快.

Use Google. There's a good chance this will already be cached on the client's computer since lots of people use it, so it may be faster.

这篇关于来自外部服务器的文件(jQuery,jQuery UI,原型)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆