jquery.js和jquery.min.js有什么区别? [英] What's the difference between jquery.js and jquery.min.js?

查看:283
本文介绍了jquery.js和jquery.min.js有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jquery.min.js和jquery.js有什么区别?

What is the difference between jquery.min.js and jquery.js?

哪个支持所有功能?

推荐答案

它们在功能上都是相同的,但是.min文件已删除了所有不必要的字符,以减小文件的大小.

They are both the same functionally but the .min one has all unnecessary characters removed in order to make the file size smaller.

同样要指出的是,您最好在实时环境中使用最小版本(.min),因为Google现在正在检查页面加载时间.缩小所有JS文件的大小意味着它们可以更快地加载,并且可以为您带来更多的布朗尼积分.

Just to point out as well, you are better using the minified version (.min) for your live environment as Google are now checking on page loading times. Having all your JS file minified means they will load faster and will score you more brownie points.

您可以获得Mozilla的名为Page Speed的插件,它将浏览您的网站并向您显示所有.JS文件并提供缩小的版本(以及其他功能).

You can get an addon for Mozilla called Page Speed that will look through your site and show you all the .JS files and provide minified versions (amongst other things).

这篇关于jquery.js和jquery.min.js有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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