Google 的 CDN 上是否有 jQuery UI CSS 主题的缩小/压缩版本?

发布于 2024-09-30 21:13:00 字数 237 浏览 4 评论 0原文

我知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

太阳哥哥 2024-10-07 21:13:00

不,我觉得不是,但我建议您在 上提出这个问题不管怎样

,提供的版本似乎已经很好地优化了......

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...

野稚 2024-10-07 21:13:00

他们没有缩小版。微软的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.

↙温凉少女 2024-10-07 21:13:00

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

无悔心 2024-10-07 21:13:00

Google 的 CDN 网站显示 js 的缩小版本,但 css 的未缩小版本:https://developers。 google.com/speed/libraries/devguide#jqueryui

jQuery UI
    snippet: <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.css" />
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script> 
    site: jqueryui.com 
    versions: 1.11.3, 1.11.2, 1.11.1, 1.11.0, 1.10.4, 1.10.3, 1.10.2, 1.10.1, 1.10.0, 1.9.2, 1.9.1, 1.9.0, 1.8.24, 1.8.23, 1.8.22, 1.8.21, 1.8.20, 1.8.19, 1.8.18, 1.8.17, 1.8.16, 1.8.15, 1.8.14, 1.8.13, 1.8.12, 1.8.11, 1.8.10, 1.8.9, 1.8.8, 1.8.7, 1.8.6, 1.8.5, 1.8.4, 1.8.2, 1.8.1, 1.8.0, 1.7.3, 1.7.2, 1.7.1, 1.7.0, 1.6.0, 1.5.3, 1.5.2 
    note: This library depends on jQuery. You must also load jQuery before loading this module. Version 1.8.3 is not hosted due to its short life, and the alias 1.8.3 actually loads 1.8.4. 

对于缩小的 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

jQuery UI
    snippet: <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.css" />
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script> 
    site: jqueryui.com 
    versions: 1.11.3, 1.11.2, 1.11.1, 1.11.0, 1.10.4, 1.10.3, 1.10.2, 1.10.1, 1.10.0, 1.9.2, 1.9.1, 1.9.0, 1.8.24, 1.8.23, 1.8.22, 1.8.21, 1.8.20, 1.8.19, 1.8.18, 1.8.17, 1.8.16, 1.8.15, 1.8.14, 1.8.13, 1.8.12, 1.8.11, 1.8.10, 1.8.9, 1.8.8, 1.8.7, 1.8.6, 1.8.5, 1.8.4, 1.8.2, 1.8.1, 1.8.0, 1.7.3, 1.7.2, 1.7.1, 1.7.0, 1.6.0, 1.5.3, 1.5.2 
    note: This library depends on jQuery. You must also load jQuery before loading this module. Version 1.8.3 is not hosted due to its short life, and the alias 1.8.3 actually loads 1.8.4. 

For a minified css, use: https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.min.css

月隐月明月朦胧 2024-10-07 21:13:00

不,我相信 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文