Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Direct download links (or CDN) #1679

Closed
JustinDrake opened this Issue · 117 comments
@JustinDrake

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

@caniszczyk

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

@cliffano

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

@JakeWharton

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

@cassionandi

+1 for a CDN

@nickmalcolm

+1 for a CDN for both minified CSS and JS

@dbpolito

:+1: for CDN

@frosas

Another +1 for a CDN

@owyongsk

Needs, CDN, badly, please. +1

@frosas

@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

@laczoka

+1 for a CDN

@g00fy-

+1

@lexden

+1

@caniszczyk

Looks like someone added it on CDNJS:

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

@jhurliman

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

@mppfiles

:+1: 4 CDN ;)

@geowa4

+1

@bcarl

+1

@wub
wub commented

+1

@pbuda

+1

@jaconel

+1 for hosting Javascript modules and Css on CDN

@bighappyface

Aye. +1

@janmarek

+1

@elrafael

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.

@nlaplante

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.

@maxcan

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

@ociule

+1

@dobrych

+1

@LekeFly

+1

@guileen

+1

@Asciant

+1

@trojkat

+2

@webfu

+1

@alexeypetrushin

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

@anroots

+1

@rtyer

+1

@alexeypetrushin

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

+1 for CDN

@lyndsysimon

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

@whuhacker

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

@berinle

+1

@bigdave

+1

@cetver

+1

@matthewblack

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

@jonahx

+1

@ringe

+1

@wsanter

+1

@braitsch

+1 Honestly surprised this hasn't happened yet.

@JuanitoFatas

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

@ctkdev

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

@alexeypetrushin

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

@flashtopia

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.

@alexeypetrushin

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

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.

@alexeypetrushin

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

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

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

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

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

@jdorfman

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

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!

@TiuTalk

+1

@flashtopia

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

@lgs

+1

@jhfrench

+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

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

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

@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

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

@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

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

Good man. Thank you.

@barryvdh

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)

@jdorfman

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

@flashtopia

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.

@KayLeung

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

@jdorfman

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

@flashtopia

@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

@jdorfman

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

@fat
Owner

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

@ghost

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

@fat
Owner

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 - :)

@fat fat closed this
@paolodina

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.

@barrydorman

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

@flashtopia

CNDJS blows.
why dont you use the NetDna twitterbootstrap?

@ytjohn

@barrydorman Good catch, fixed.

@ase69s

+1

@Luceos

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

@fedmich

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

@cvrebert cvrebert locked and limited conversation to collaborators
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Something went wrong with that request. Please try again.