I was looking for a CDN to use with Bootstrap and Angular, and I found a great resource. CDNjs.com ended up doing the trick. I also learned that you can discover many great Javascript libraries and projects by going through the offerings of different CDNs. So, with that being said, here is a list of the CDNs that I discovered:
- CDNjs.com — includes a number of great libraries
- Bootstrap CDN — just bootstrap and Font Awesome
- Microsoft Ajax Content Delivery Network
- JSDelivr (you can see their list of libraries on Git Hub)
Just to give you an idea of what I ended up with, here’s part of the <head> of my project. I used the head javascript library for most of the javascript:
<head>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css" rel="stylesheet">
<script src="//cdnjs.cloudflare.com/ajax/libs/headjs/0.99/head.min.js"></script>
<link type="text/css" href="css/devtools.css" rel="stylesheet" />
<script>
head.js(
// https://groups.google.com/forum/?fromgroups=#!topic/ace-discuss/rNckG17-7ac
// http://stackoverflow.com/questions/5733275/chrome-uncaught-syntax-error-unexpected-token-illegal
"//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js",
"//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js",
"//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js",
"//cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.1/angular.min.js",
"js/app.js",
function() {
/* My initialization ... */
}
);
</script>
If you know of a CDN that I missed, please comment below!