Is there a hosted version of Twitter Bootstrap? Something similar to the hosted version of jQuery on Google?
Asked
Active
Viewed 8.0k times
144
-
6If you guys are interested in Google CDN support for bootstrap, please add your +1 starring the issue on google-ajax-apis bug tracker here: http://code.google.com/p/google-ajax-apis/issues/detail?id=637 - Thanks. – Paolo Aug 26 '12 at 10:50
-
This question was helpful for me. – Catto Mar 04 '14 at 20:03
-
1This if in for css. Thx Mr. Strang for the question. – Catto Mar 05 '14 at 09:42
-
Yes, you can load it from [bootstrap cdn](https://pagecdn.com/lib/bootstrap). – Hamid Sarfraz Oct 07 '19 at 05:17
2 Answers
169
BootstrapCDN.com
Hosts the Javascript, CSS, and Image files.
Additionally hosts the Font Awesome CSS and a selection of Bootswatch themes.
Maintained by @jdorfman and @mervinej.
CDNJS.com
Hosts the JavaScript, CSS and Image files. Check the GitHub repo for more specifics.
Also hosts a ton of other JS libraries, including plenty of Bootstrap plugins/addons.
Maintained by @peterdavehello.

merv
- 67,214
- 13
- 180
- 245
-
2
-
The vanilla deployment is the best way to use bootstrap. Put your own customization in a separate file. That way you can take advantage of CDN / Local caching. – Frank Jun 14 '12 at 16:45
-
@Frank - The notion that vanilla is "the best way" is a rather strong assertion. In fact, the way in which the official [Twitter Bootstrap](http://twitter.github.com/bootstrap/less.html) page encourages using LESS to generate customized CSS tends to imply that consolidating to a single custom file is the recommended practice. – merv Jun 14 '12 at 19:24
-
The problem with relying on less is that first you cannot use a shared cdn, because everyone will have their own changes, and 2nd its not so easy to update bootstrap changes without recompiling from less, or unless you have code that does that for you. It would be nice if bootstrap's less generator, simply only created a bootstrap-custom.css file that could be used in conjunction with the bootstrap framework. Truly separate style from style :) – Frank Jun 14 '12 at 22:22
-
1cdnjs now has full support for css and image hosting - https://github.com/cdnjs/cdnjs/tree/master/ajax/libs/twitter-bootstrap/2.1.0 – Ryan Kirkman Sep 13 '12 at 23:26
-
@RyanKirkman Alright, I'll update the answer! Thanks for the official confirmation. :D – merv Sep 13 '12 at 23:31
-
7
This is a common request: Direct download links (or CDN) Also looks like the library not on any CDN at the moment.
You could use the raw github files, although this is not good practise, see: Should Github be used as a CDN for javascript libraries?
-
4
-
9@ChristianStrang yes, star the issue on Google bugtracker: http://code.google.com/p/google-ajax-apis/issues/detail?id=637 – Paolo Aug 26 '12 at 10:52