蓝图 CSS 框架的 CDN

发布于 2024-09-02 23:03:01 字数 1539 浏览 9 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

淡忘如思 2024-09-09 23:03:01

好吧,从技术上讲,它不是 CDN,但你可以直接链接到 github

<link rel="stylesheet" href="//github.com/joshuaclayton/blueprint-css/raw/master/blueprint/print.css"/>
<link rel="stylesheet" href="//github.com/joshuaclayton/blueprint-css/raw/master/blueprint/screen.css"/>
<link rel="stylesheet" href="//github.com/joshuaclayton/blueprint-css/raw/master/blueprint/ie.css"/>

我自己没有尝试过,也不知道他们是否会在任何特定时刻更改它。但这是一个不必自己托管的解决方案。

对我来说,我会把它放在我自己的服务器上,我不喜欢有依赖性,而且它们是小文件。但如果你想压缩每一毫秒,我会测试一下。您的服务器可能更快,并且已经建立了与它们的连接。

同时,许多浏览器对每个域都有连接限制,因此您可能会获得并行下载,CDN 也很好,因为用户通常已经缓存了资源(尽管在这种情况下不太可能)。

就我个人而言,我不会这样做,除非是谷歌、微软、亚马逊等……并且他们专门为此目的将其放在他们的服务器上。我使用 Google CDN for jQuery,它非常棒。但蓝图还没有出现。

Well, it's not technically a CDN but you can link directly to github

<link rel="stylesheet" href="//github.com/joshuaclayton/blueprint-css/raw/master/blueprint/print.css"/>
<link rel="stylesheet" href="//github.com/joshuaclayton/blueprint-css/raw/master/blueprint/screen.css"/>
<link rel="stylesheet" href="//github.com/joshuaclayton/blueprint-css/raw/master/blueprint/ie.css"/>

I haven't tried this myself, and don't know if they might change it at any given moment. But it's a solution for not having to host it yourself.

For me, I would put it on my own server, I prefer not to have the dependency, and they are small files. But if you're trying to squeeze every ms I'd test it. Your servers may be faster, and a connection to them is already established.

At the same time, many browsers have a connection limit for each domain, so you may get parallel downloads, also a CDN is nice because the user often has the resource already cached (although, not likely in this case).

Personally, I wouldn't do it, unless it's Google, Microsoft, Amazon, etc... and they're putting it on their servers specifically for the purpose. I use the Google CDN for jQuery, and it's great. But Blueprint just isn't there yet.

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