<分区>
Possible Duplicate:
Hosted version of Twitter Bootstrap (maybe Google?)
截至目前,我正在加载我的 jquery from google像这样。
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
Twitter Bootstrap 是 most popular project在 github 中。我认为它正日益流行,而且我很确定许多网站都使用 bootstrap。
如果有一个集中的 api 来加载 Bootstrap ,页面显然会加载得更快,因为它可能已经像 jQuery 一样缓存在客户端的浏览器中。
像这样
<link rel="stylesheet" type="text/css" href="http://bootstrap.twitter.com/2.2.2/bootstrap.min.css" />
<script src="//bootstrap.twitter.com/2.2.2/bootstrap.min.js"></script>
这可能吗?