CDN for blueprint css framework [closed]

五迷三道 提交于 2019-12-04 22:51:51
Dan Williams

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!