twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
https://getbootstrap.com
MIT License
170.85k stars 78.88k forks source link

Direct download links (or CDN) #1679

Closed JustinDrake closed 12 years ago

JustinDrake commented 12 years ago

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

kagedwolf commented 12 years ago

+1

al6x commented 12 years ago

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?

tomchentw commented 12 years ago

+1 for CDN

lyndsysimon commented 12 years ago

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

chintanop commented 12 years ago

+1

OzzyCzech commented 12 years ago

+1

whuhacker commented 12 years ago

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

add1ct3dd commented 12 years ago

+1

berinle commented 12 years ago

+1

bigdave commented 12 years ago

+1

JuanitoFatas commented 12 years ago

+1

studentIvan commented 12 years ago

+1

cetver commented 12 years ago

+1

aaronshaf commented 12 years ago

+1

matthewblack commented 12 years ago

+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!

mickaeltr commented 12 years ago

+1

jonahx commented 12 years ago

+1

ringe commented 12 years ago

+1

wsanter commented 12 years ago

+1

braitsch commented 12 years ago

+1 Honestly surprised this hasn't happened yet.

JuanitoFatas commented 12 years ago

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???

nfaiz commented 12 years ago

+1

http://html5shiv.googlecode.com/svn/trunk/html5.js https://github.com/aFarkas/html5shiv/blob/master/src/html5shiv.js

both are using v3.6.

ctkdev commented 12 years ago

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

dolzenko commented 12 years ago

+1

eistrati commented 12 years ago

https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.3/bootstrap.min.js

al6x commented 12 years ago

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

flashtopia commented 12 years ago

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.

al6x commented 12 years ago

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.

flashtopia commented 12 years ago

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.

al6x commented 12 years ago

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.

ctalkington commented 12 years ago

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.

ctalkington commented 12 years ago

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.

flashtopia commented 12 years ago

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.

ctalkington commented 12 years ago

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

jdorfman commented 12 years ago

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.

flashtopia commented 12 years ago

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!

alexgutjahr commented 12 years ago

+1

TiuTalk commented 12 years ago

+1

flashtopia commented 12 years ago

+1

flashtopia commented 12 years ago

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

xeoncross commented 12 years ago

+1

lgs commented 12 years ago

+1

jhfrench commented 12 years ago

+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.

jhfrench commented 12 years ago

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.

xeoncross commented 12 years ago

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.

jhfrench commented 12 years ago

@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.

flashtopia commented 12 years ago

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!

flashtopia commented 12 years ago

@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.

jdorfman commented 12 years ago

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.

jhfrench commented 12 years ago

Good man. Thank you.