Google 的 CDN 上是否有 jQuery UI CSS 主题的缩小/压缩版本?
我知道 Google 在以下位置有 jQuery UI 的 CSS 文件:
//ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/pepper-grinder/jquery-ui.css
但我想知道他们是否提供缩小或压缩版本?
我尝试了多种类似于js文件命名方式的组合,但它们都导致404。
有什么想法吗?
I know that Google has the CSS files for jQuery UI at the following location:
//ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/pepper-grinder/jquery-ui.css
But I'm wondering if they serve the minified or compressed versions?
I tried a number of combinations similar to the way naming of the js files, but they all results in 404s.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
不,我觉得不是,但我建议您在 上提出这个问题不管怎样
,提供的版本似乎已经很好地优化了......
No, it does not seem to me, but I would advise you to ask this question on the dedicated group
Anyway, the provided versions seems already well optimized...
他们没有缩小版。微软的CDN也没有。
您实际上不需要压缩它。如果您确实希望加载速度更快,则需要包含一个基于 jquery UI 页面构建的自定义包,以仅包含您需要的功能。
They don't have the minified version. Neither does the microsoft CDN have it.
You wouldn't really need to compress it. If you really wanted to load faster, you need to include a custom package built on the jquery UI page to only include the features you need.
Google 现在拥有 JQuery 的最小化版本:
https://developers.google.com/ speed/libraries/devguide#jquery-ui
从 440k 下降到 223k
Google now has the minimized version of JQuery:
https://developers.google.com/speed/libraries/devguide#jquery-ui
It is down from 440k to 223k
Google 的 CDN 网站显示 js 的缩小版本,但 css 的未缩小版本:https://developers。 google.com/speed/libraries/devguide#jqueryui
对于缩小的 css,请使用:https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.min.css
Google's CDN website displays the minified version for js but unminified version for css: https://developers.google.com/speed/libraries/devguide#jqueryui
For a minified css, use: https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.min.css
不,我相信 Google 只提供官方下载网站提供的文件,而不进行任何后期处理,并且由于这就是提供的 CSS 文件的样子,因此没有“压缩”版本。
实际上,我不认为您应该从 Google 的 CDN 加载 jQuery UI 及其关联的 CSS 文件,因为 jQuery UI 是模块化的,而从 Google 的 CDN 加载文件将加载所有模块,这意味着您将加载一堆不必要的脚本和样式。使用 jQuery UI 下载页面中的自定义包生成器来仅包含您需要的模块,这比压缩通过 Google CDN 提供的已经高度压缩的 CSS 文件要减少更多的文件大小。
No, I believe Google only serves the files that are provided by the official download sites without any post-processing, and since that's what the provided CSS files look like, there isn't a "compressed" version.
Actually I don't believe you should load jQuery UI and it's associated CSS files from Google's CDN, since jQuery UI is modular, while loading the file from Google's CDN will load all of the modules, meaning that you'll be loading a bunch of unnecessary scripts and styles. Use the custom package builder from the jQuery UI downloads page instead to include only the modules you need should reduce filesizes much more than compressing the already highly compressed CSS file served through Google's CDN.