标签: cdn

CDN for blueprint css framework

有没有人知道蓝图css框架的免费CDN

cdn blueprint-css

17
推荐指数
1
解决办法
2789
查看次数

用于通过CDN的Bootstrap的Visual Studio intellisense

我通过Microsoft CDN安装了Bootstrap,如:

<head>
    ...
   <link href="//ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
   <link href="//ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
</head>
Run Code Online (Sandbox Code Playgroud)

<body>
    ...
    <script src="//ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/bootstrap.min.js"></script>
</body>
Run Code Online (Sandbox Code Playgroud)

使用Bootstrap一切正常,但Visual Studio并没有给我任何类型的智能感知.

例如,输入

<div class="(intellisense should open here)
Run Code Online (Sandbox Code Playgroud)

什么都没有出现.

有没有办法从CDN获得智能感知?

css intellisense cdn visual-studio-2012 twitter-bootstrap-3

17
推荐指数
3
解决办法
2万
查看次数

为什么Google的Closure库不在他们的CDN上托管?

Google 在其CDN上托管了许多JavaScript库,例如jQuery和dojo .出于某种原因,他们自己的Google Closure库似乎不包括在内.是否有Closure库的托管版本?

javascript cdn google-closure google-cdn

16
推荐指数
2
解决办法
5352
查看次数

尝试使用collection_select显示eamil时获取[email protected]

我使用Ruby 1.8.7与Rails 2.3.9.使用集合选择创建电子邮件地址下拉列表时,电子邮件地址不会显示.相反,我在下拉菜单中看到"[email protected]".是否有一些开关造成这种情况?

当它看到列表中的电子邮件时,似乎有一些javascript被应用于下拉列表中的每个项目.当我只列出用户名时,javascript就不存在了.

<script type="text/javascript">
/* <![CDATA[ */
3(function(){try{var s,a,i,j,r,c,l=document.getElementById("__cf_email__");a=l.getAttribute("cf_sec");if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
4/* ]]> */ 
<script/>
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails cdn cloudflare

16
推荐指数
2
解决办法
4681
查看次数

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

通常的做法是使用CDN缓存javascript,css,font等等...但是这似乎并没有扩展到图标到相同的程度(可能因为每个网站都喜欢具有独特的外观和感觉?)

是否有广泛使用的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
Run Code Online (Sandbox Code Playgroud)

和bootstrap halflings图标集一样:

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
Run Code Online (Sandbox Code Playgroud)

performance icons cdn css-sprites

16
推荐指数
3
解决办法
5315
查看次数

CDN中提供OpenLayers脚本?

OpenLayers Js脚本是否在某个CDN中可用 - 在缩小版本中?

我不想从他们的网站加载它,这将是缓慢而不好.

cdn openlayers

16
推荐指数
2
解决办法
6458
查看次数

无论请求的URL是什么,都将任何CDN配置为仅提供一个文件

我目前正在开发一个新项目,整个页面应该在HTML5/JS中实现,而不是API/JSON.由于整个应用程序应该只包含一个HTML文件(index.html)和一个JS MVC应用程序(可能是backboneJs),我正在考虑SEO和用户友好的URL.

在那里我遇到了

window.document.pushstate('','title','/url');
Run Code Online (Sandbox Code Playgroud)

借助该html5功能,我可以定义URL而无需真正离开或重新加载页面.但是...... 出于性能原因和低费用,我想将应用程序部署到像Amazon CloudFount这样CDN中.我不需要任何服务器基础设施(当然除了我需要的API)

因此,无论调用什么URL,我都可以配置CDN(实际上是任何类似AWS,Azure,Akamai的CDN)来提供相同的HTML文件

http://www.example.com =>发送index.html

http://www.example.com/any_subpage =>发送index.html

等等 ...

您可以在http://html5.gingerhost.com找到一个工作示例.但该页面的创建者可能会使用.htaccess文件或熟悉的东西将所有内容映射到同一文件.我想在CDN中提供相同的功能.

javascript seo html5 cdn amazon-web-services

16
推荐指数
1
解决办法
2201
查看次数

在生产中使用 Tailwind CDN 有多糟糕?

在生产中使用 Tailwind CSS CDN 对性能有何影响?

到底为什么不推荐这样做?

css cdn production-environment reactjs tailwind-css

16
推荐指数
1
解决办法
5937
查看次数

如何更新亚马逊CDN(CloudFront)上的文件?

有没有办法更新存储在Amazon CloudFront(亚马逊的CDN服务)上的文件?似乎它不会对我们制作的文件进行任何更新(例如删除文件并使用与以前相同的文件名存储新文件).我是否必须明确触发更新过程以从边缘服务器中删除文件以获取已发布的新文件内容?

谢谢你的帮助

cloud cdn amazon-s3 amazon-web-services amazon-cloudfront

15
推荐指数
2
解决办法
2万
查看次数

Resharper告诉我一个css类是未知的,因为它在CDN上吗?

Resharper 在我网站的_SiteLayout.cshtml文件中告诉我" 未知的css类'容器流体':

<header class="container-fluid">"
Run Code Online (Sandbox Code Playgroud)

我在<head>部分中有这个:

<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
Run Code Online (Sandbox Code Playgroud)

......而且我相信"容器流体"就在那里.这仅仅是Resharper无法找到课程的问题,因为它很遥远吗?

css resharper cdn twitter-bootstrap twitter-bootstrap-3

15
推荐指数
2
解决办法
6594
查看次数