18

Just checking to see if anyone knows of a CDN for the bootstrap css framework.

migrated from stackoverflow.com Feb 16 '12 at 1:02

This question came from our site for professional and enthusiast programmers.

12

I don't know of a compressed version out there but you might want to create a saved Google search to keep yourself updated.

You could submit it to http://www.cdnjs.com and it has a shot being hosted by them for free.

Also, it looks like you could get an uncompressed version from here, http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css.

Finally, if you wanted to, you could host a copy on your own CDN like Amazon's cloudshare. It is very cheap to host and if you are using it only for your sites, it might only cost you a few dollars a month.

7

Justin Dorfman manages http://www.bootstrapcdn.com/ which has version 2.3.1 (at the time of editing)

Complete CSS (Responsive, With Icons):

//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css

Complete JavaScript

//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js

GitHub Repo

https://github.com/netdna/bootstrap-cdn

3

The JS is available at http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.3/bootstrap.min.js

Follow the CDNCSS at https://github.com/cdnjs/cdncss/tree/master/css/bootstrap

Update: The CSS can be found on cdnjs.com for now, http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.4/css/bootstrap.min.css

1

Seeing as BootStrap is incredibly customisable, including via their site, wouldn't you be better off tailoring it (in the same way you might tailor the Modernizr JS packages) to more closely meet your requirements (such as colours and default font sizes, remove unused features, etc), and then host the (often much) smaller file your self?

Whilst there's some small benefit to not downloading the full payload if someone has already visited a site using it, there's still all the processing and parsing of the script that has to happen...

This is the route that Modernizr took with their move to version 2:

Modernizr and Content Delivery Networks

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