144

Is there a hosted version of Twitter Bootstrap? Something similar to the hosted version of jQuery on Google?

TRiG
  • 10,148
  • 7
  • 57
  • 107
Christian Strang
  • 8,470
  • 5
  • 42
  • 53

2 Answers2

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
    BootstrapCDN.com has the JS files, CSS Files, + SSL Support. – Frank Jun 14 '12 at 16:45
  • 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
  • 1
    cdnjs 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
  • Thanks @merv. We also support SSL (and SPDY). – Ryan Kirkman Sep 14 '12 at 00:16
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?

Community
  • 1
  • 1
Hoff
  • 38,776
  • 17
  • 74
  • 99