144

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

4
  • 6
    If you guys are interested in Google CDN support for bootstrap, please add your +1 starring the issue on google-ajax-apis bug tracker here: code.google.com/p/google-ajax-apis/issues/detail?id=637 - Thanks.
    – Paolo
    Aug 26, 2012 at 10:50
  • <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> This question was helpful for me.
    – Catto
    Mar 4, 2014 at 20:03
  • 1
    <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"> This if in <head> for css. Thx Mr. Strang for the question.
    – Catto
    Mar 5, 2014 at 9:42
  • Yes, you can load it from bootstrap cdn. Oct 7, 2019 at 5:17

2 Answers 2

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.

6
  • 2
    BootstrapCDN.com has the JS files, CSS Files, + SSL Support.
    – Frank
    Jun 14, 2012 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, 2012 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 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, 2012 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, 2012 at 22:22
  • 1
    cdnjs now has full support for css and image hosting - github.com/cdnjs/cdnjs/tree/master/ajax/libs/twitter-bootstrap/… Sep 13, 2012 at 23:26
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?

2

Not the answer you're looking for? Browse other questions tagged or ask your own question.