如何将CDN加速技术应用到图标上?

发布于 2024-10-10 22:12:29 字数 1080 浏览 4 评论 0原文

使用 CDN 缓存 javascript、css、字体等已成为常见做法... 然而,这似乎并没有扩展到相同程度的图标(可能是因为每个站点都喜欢拥有独特的外观和感觉?)

是否存在由 CDN 托管的广泛使用的图标集,这些图标集足够常见,可以显着提高 CDN 托管的速度并且可能已经使用该 CDN 从另一个站点进行了预缓存。

一个例子是: http://cdnjs.cloudflare.com 其内容可在 https://github.com/cdnjs/cdnjs/tree/master

它托管的一些图标集位于

/ajax/libs/twitter-bootstrap/2.3.2/img/glyphicons-halflings.png
/ajax/libs/fatcow-icons/...
/ajax/libs/foundicons/3.0.0/svgs/...
/ajax/libs/aui/5.4.0/aui/css/icons/...
/ajax/libs/topcoat-icons/0.2.0/svg/...
/ajax/libs/jqueryui/1.10.3/css/base/images/...
*jqueryui is also hosted on ajax.googleapis.com and others but is a limited set

:引导半身人图标集:

http://netdna.bootstrapcdn.com/bootswatch/2.3.2/img/glyphicons-halflings.png
http://ajax.aspnetcdn.com/ajax/bootstrap/2.3.2/img/glyphicons-halflings.png
http://www.bootstrapcdn.com/twitter-bootstrap/2.3.1/img/glyphicons-halflings.png

It has become common practice to use CDNs for caching javascript, css, font's and more...
however this does not appear to extend to icons to the same extent (possibly because each site prefers to have a unique look and feel?)

Are there widely used icon sets hosted by CDNs that are common enough to provide significant speed improvement from the CDN hosting and possibly already being pre-cached from another site using that CDN.

One example is:
http://cdnjs.cloudflare.com whose contents are browse-able at https://github.com/cdnjs/cdnjs/tree/master

some icon sets it hosts are at:

/ajax/libs/twitter-bootstrap/2.3.2/img/glyphicons-halflings.png
/ajax/libs/fatcow-icons/...
/ajax/libs/foundicons/3.0.0/svgs/...
/ajax/libs/aui/5.4.0/aui/css/icons/...
/ajax/libs/topcoat-icons/0.2.0/svg/...
/ajax/libs/jqueryui/1.10.3/css/base/images/...
*jqueryui is also hosted on ajax.googleapis.com and others but is a limited set

as is the bootstrap halflings icon set:

http://netdna.bootstrapcdn.com/bootswatch/2.3.2/img/glyphicons-halflings.png
http://ajax.aspnetcdn.com/ajax/bootstrap/2.3.2/img/glyphicons-halflings.png
http://www.bootstrapcdn.com/twitter-bootstrap/2.3.1/img/glyphicons-halflings.png

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

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

发布评论

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

评论(3

吾性傲以野 2024-10-17 22:12:29

IconFinder 托管一个 CDN,其中包含 Fugue、Silk、Silk2、FatCow (Farm-Fresh) 和其他图标套。

这是来自 IconFinder 的创建者和开发者的确认。 MD 可以热链接到他们的 CDN

IconFinder hosts a CDN which has Fugue, Silk, Silk2, FatCow (Farm-Fresh) and other icon sets.

And here's confirmation from IconFinder's creator & MD that it's okay to hotlink to their CDN.

带刺的爱情 2024-10-17 22:12:29

http://www.dustball.com/icons

“Fam3 图标搜索和免费 CDN 托管,作者:Brian克卢格”

http://www.dustball.com/icons

"Fam3 Icon Search and free CDN hosting for everyone by Brian Klug"

や莫失莫忘 2024-10-17 22:12:29

您自己在 Amazon CloudFront 上托管它们怎么样?根据您的流量,每月只需花费几美分。

首先,请确保您已通过将正在使用的图标转换为单个精灵文件来优化它们。这可能会根本解决使用 CDN 的需要。

How about hosting them yourself on Amazon CloudFront? It should only cost pennies a month depending on your traffic.

Though first of all, make sure you've optimised the icons you're using by turning them into a single sprite file. That may resolve the need to use a CDN at all.

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