Skip to content
This repository

Direct download links (or CDN) #1679

Closed
JustinDrake opened this Issue February 03, 2012 · 119 comments
Justin

How can I get the file bootstrap.css directly (without having to download the whole .zip file)? Is there a CDN of some sort?

Chris Aniszczyk

Maybe something like CDNJS would help? http://www.cdnjs.com/

Cliffano Subagio

+1 for a CDN
Would be nice to have bootstrap cached on the browser once for thousands of sites to benefit.

Deleted user

The content you are editing has changed. Reload the page and try again.

You can link to http://twitter.github.com/bootstrap/assets/css/bootstrap.css, but it's uncompressed

Sending Request…

Attach images by dragging & dropping or selecting them. Octocat-spinner-32 Uploading your images… Unfortunately, we don't support that file type. Try again with a PNG, GIF, or JPG. Yowza, that's a big file. Try again with an image file smaller than 10MB. This browser doesn't support image attachments. We recommend updating to the latest Internet Explorer, Google Chrome, or Firefox. Something went really wrong, and we can't process that image. Try again.

Jake Wharton

It's also not versioned nor guaranteed to not move.

Cássio Nandi Citadin

+1 for a CDN

Nick Malcolm

+1 for a CDN for both minified CSS and JS

Daniel Polito

:+1: for CDN

Francesc Rosas

Another +1 for a CDN

SoonKhen OwYong

Needs, CDN, badly, please. +1

Francesc Rosas

@mindctrl what about the convenience of not having to download, unzip, ... it?

I really like being able to bootstrap projects as fast as this:

<!doctype html>
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<h1>My new awesome project</h1>
martijnmegens

+1 for a CDN

Laszlo (@laczoka on Twitter)

+1 for a CDN

Piotrek Majewski

+1

Lexden Montessori

+1

Chris Aniszczyk

Looks like someone added it on CDNJS:

http://www.cdnjs.com/#/search/bootstrap, not sure who

John Hurliman

@caniszczyk Thanks for the link. Now we just need https://github.com/cdnjs/cdncss to get off the ground.

:+1: 4 CDN ;)

George Adams

+1

Brandon Carl

+1

Jarrod Mosen

+1

Piotr Buda
pbuda commented March 01, 2012

+1

Jaco Nel

+1 for hosting Javascript modules and Css on CDN

David Porter

Aye. +1

Jan Marek

+1

Nicolas Laplante

+1

Rafael V. de Oliveira

I don't believe that will be someday. Why?

Simple, you can customize your bootstrap. That version is already compiled with "Less". So, unless you want to use the default colors/grid sizes/fonts/ I can't see why the dev team will put the bootstrap.css in a CDN service.
JQuery UI has, but only the default themes. Not the themeroller.

The same for javascript files. You don't need all the js files in your project.

By the way, why people put +1? I don't think it will help.

Nicolas Laplante

Good point elrafael, but I think many people just use the default anyway, plus maybe a couple of overrides in their own stylesheets.

People just put +1 to show the demand is there.

Max Cantor

Also, with less.js, you can use the CDN version and still customize to your hearts content. CDN pls pls.

ociule

+1

Tom O'Brien

+1

Chris Tosswill

+1

ilya

+1

LekeFly

+1

Gui Lin

+1

Haiden Taylor

+1

Tomasz Karbownicki

+2

Chin Lee

+1

webfu
webfu commented April 03, 2012

+1

Alexey Petrushin

+1 many use it as a scaffolding and quick prototyping, it would be nice to have CDN links

Piotr Usewicz

+1

Ando "David" Roots

+1

rtyer commented April 17, 2012

+1

Kevin Wolff

+1

Alexey Petrushin

Maybe we should ask about it on some open CDN hosting?
It seems there's cdnjs, but it doesn't host CSS, any other options?

Tom Chen

+1 for CDN

Lyndsy Simon

It would be very handy when working on jsFiddle to build a failure case before submitting a bug.

chintanop

+1

Roman Ožana

+1

Zeng Xi

+1
Google have CDN services for jquery and jqueryUI. so why not Bootstrap

Matthew Evans

+1

Bayo Erinle

+1

Big Dave

+1

Juanito Fatas

+1

Ivan Tranquility

+1

cetver
cetver commented May 07, 2012

+1

Aaron Shafovaloff

+1

Matthew Sedlacek

+1 I've been discussing this exact thing with a friend. She works at a major CDN and may be able to make this happen. Stay tuned!

Mickaël Tricot

+1

Jonah
jonahx commented May 11, 2012

+1

Runar Ingebrigtsen
ringe commented May 15, 2012

+1

Wilfried Santer
wsanter commented May 15, 2012

+1

Stephen Braitsch

+1 Honestly surprised this hasn't happened yet.

Juanito Fatas

I read an article about CDN or NOT CDN: html5shiv and serving content from code repository, maybe we should host our own bootstrap.min.css???

Christopher T. Kwiatkowski
ctkdev commented May 20, 2012

+1
This would be fantastic! It would make creating development wireframes so easy for my company.

Evgeniy Dolzhenko

+1

Alexey Petrushin

No, it's not. There's only JS assets, without CSS?

Frank Basti

what is the point? Arent you planning on customizing any of the css?
if you are looking for a cdn for free bandwidth, then use the amazon s3 promo tier.
Doesnt make sense to put the whole bootstrap min on a css, then add another custom css file next to it which conflicts with original classes. Good practice to sweep styles you are not using, not to add more beyond them.

Alexey Petrushin

I need it for small projects like docs ( like this one http://alexeypetrushin.github.com/mongo-lite ), prototyping and sharing bugs in online editors. All custom css in such cases are usually a couple of lines in HTML style tag.

Frank Basti

Yeah, not to much style changes there. Why not just throw it up on app engine or s3 and have your own private CDN? It will be just as fast.

Alexey Petrushin

Hmm, yes, it's possible, but I have a feeling that I'm not alone and there are lots of people that have similar use cases, everyone will benefit if it would be publicly available from CDN.

Chris Talkington

the only CDN im aware of for CSS is CDNCSS by CDNJS and it really hasn't taken off. I do agree that if could be useful.

Chris Talkington

The issue with S3 (at least worldwide) is when you get into Asian Pacific regions. I have heard of bad experiences. If only Akamai CDN wasn't so expensive.

EDIT: anyone tried Rackspace Cloud Files? I hear its pay by usage at 0.15 per GB stored and 0.18 per GB transferred over Akamai.

Frank Basti

I recommended Amazon S3 for their free usuage tier. Theoretically you could get a free CDN if you just have a different credit card each year. Although i have not tried to screw them out of paying any fees.

As for Paid CDN.
I highly suggest you check out NetDNA. They are blazing fast, their team is amazing, and the pricing is very affordable.
For basic sites they have MaxCDN.

Might want to reach out to MaxCDN and see if they are willing to freely host Bootstrap. I am sure they couple it with a cool domain name and promo marketing for MaxCDN it would be worthwhile.

Chris Talkington

that sponsorship might be the best route. or maybe twitter can share its CDN ;)

Justin Dorfman

We (NetDNA/MaxCDN) will sponsor this project. We tried do something like this but didn't have the resources to keep it up to date. Anyone else building cool things like this & needs a sponsored account send me a message.

Frank Basti

This is another reason NetDNA is simply amazing! We use godaddy cloud servers which is a decent choice for cloud hosting. Where it can get expensive is outbound bandwidth. We slash our outgoing bandwidth rates by 1/2 by using MaxCDN (netdna) for our static resources.

This blows away my previous comments of simply uploading bootstrap to amazon S3. MaxCDN has servers all over the USA / World. Plus having a public URL that we all can share is sure to speed up repeat requests.

It would be really nice to be able to have a CDN url for the Bootrap CSS files, along with the individual js files, and one for the bootstrap combined js file.

Really cool!

Alexander Hanschke

+1

Thiago Belem
TiuTalk commented May 26, 2012

+1

Frank Basti

+1

Frank Basti

Looks like its happening soon! http://bootstrapcdn.com/

David Pennington

+1

Luca G. Soave
lgs commented May 29, 2012

+1

Jeromy French

+1 with the javascript combined and minified as well.
See http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/ for a compelling case to adopt CDN whenever possible.

Jeromy French

PS--"problem" with cdnjs is that it doesn't seem to support SSL. So if your site is SSL, including a http asset introduces problems.

David Pennington

A CDN isn't useful if your site is over SSL as there is no caching benefit from other domains. With SSL the only thing it saves is your servers bandwidth.

Jeromy French

@xeoncross: But that's not the only benefit of a CDN resource called via https. One would also benefit from (to paraphrase) the advantages of geographically-distributed CDN servers vs your own "arbitrarily-located" server.
Plus, if I understand this correctly, increased parallelism comes into play.

Frank Basti

CDNJS is also extremely slow at random times. Their service is great for a Poor man's CDN, but wont give you any real performance, all it might do is save you a few cents off your bandwith bill. Now that NetDNA / MaxCDN has decided to host bootstrap on http://bootstrapcdn.com/ it would be very cool if they also had other popular frameworks. Compared to other CDN providers they have a ton of edge locations, and are lightning fast. In our tests from both NY and Northern California, content from their edge locations loads faster than both google app engine and amazon.

Cant wait!

Frank Basti

@Xeoncross, if a cdn does not support https then you get mixed content warnings on your ssl pages. there are added benefits because a proper cdn uses gzip, cookieless domains. And although the content from Https will not cache in some browsers, its still a huge performance results from closer edge locations, and using a different domain name for parallel downloads. We use a combo of amazon cloud and godaddy cloud servers. The cdn provider we use, is cheaper on outgoing bandwidth than either of our hosting partners. For us its a no brainer to use CDN (https) for all our static requests (images, css, pdf, js) All our servers create and push are html.

Justin Dorfman

Ok here you go kids: http://bootstrapcdn.com/

Yes it has SSL Support. Please help me make the site better: https://github.com/jdorfman/bootstrap-cdn

Thanks.

Jeromy French

Good man. Thank you.

Barry vd. Heuvel

Just beware that when @jdorfman decides to pull the plug (or has downtime), your sites will become unusable. (Not saying that he would, but maybe something to keep in mind before you build all your sites with this cdn)

Justin Dorfman

@Barryvdh you make a valid point. At the very bottom of the site I state: "This free service comes with no warranty. NetDNA LLC. shall not be held responsible for any issues related to availability or performance." I should make it bigger.

With that said I was hoping our competitors (EdgeCast, Amazon, Fastly, etc.) would fork their own version and offer this as a free service.

If you are using Bootstrap CDN in production and are experiencing performance issues email me direct: jdorfman at netdna dot com. I will make sure it gets resolved in a timely fashion.

Frank Basti

I have been using NetDNA (max CDN) for two years. Never had any issues in regards to downtime. If you are super worried you can always use a fallback url that hosts the files on your own servers, similar to what is done with Jquery in html boilerplate.

With that said, the same could be true of goolgle and microsoft hosting free items such as jquery. They both do not come with a 100% guarantee that they will be up forever.

Kay.L

Thanks NetDNA. @jdorfman, can you add Asia edge to it?

Justin Dorfman

@KayLeung you are welcome. I will see what I can do. Only issue currently is SSL will not work in APAC.

Frank Basti

@Bootstrap. I think you can close this issue. What would be really neat is if the bootstrap examples used links from the CDN, maybe with local fallbacks. The more people use this service, the quicker it will be. It would be great to see if twitter has some feedback on @jdorfman / NetDNA's project

Justin Dorfman

For those who are hesitant using bootstrapcdn we now have public status page that monitors uptime and performance: http://status.bootstrapcdn.com/

Jacob
Owner
fat commented July 22, 2012

Tagging this issue as popular, please stop commenting on this issue with +1. thanks!

Deleted user
ghost commented July 29, 2012

The content you are editing has changed. Reload the page and try again.

Can't it be put on Google's CDN? Bootstrap is a really popular tool.

Sending Request…

Attach images by dragging & dropping or selecting them. Octocat-spinner-32 Uploading your images… Unfortunately, we don't support that file type. Try again with a PNG, GIF, or JPG. Yowza, that's a big file. Try again with an image file smaller than 10MB. This browser doesn't support image attachments. We recommend updating to the latest Internet Explorer, Google Chrome, or Firefox. Something went really wrong, and we can't process that image. Try again.

Jacob
Owner
fat commented July 29, 2012

Closing as there are a number of cdn's that offer this now. If you'd like it on google, please raise it with the google bros - :)

Jacob fat closed this July 29, 2012
Paolo Dina

I filed a ticket on google-ajax-apis bug tracker asking for Google CDN support for Bootstrap.

To add your +1, please star the issue: http://code.google.com/p/google-ajax-apis/issues/detail?id=637

Thanks.

Barry Dorman

There's an error in the minified JS link above. The extension should be .js, not .css; i.e:
http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.1.1/bootstrap.min.js

Frank Basti

CNDJS blows.
why dont you use the NetDna twitterbootstrap?

John Hogenmiller

@barrydorman Good catch, fixed.

ase69s
ase69s commented May 29, 2013

+1

Daniel Klabbers
Luceos commented July 04, 2013

A solution also is: http://bootcdn.com

Federico

+1 too. I wonder which one to use now though and which is faster http://cdnjs.com or http://bootcdn.com ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.