Questions tagged [cdn]

A content delivery network or content distribution network (CDN) is a system of computers containing copies of data placed at various nodes of a network.

Deploying your content across multiple, geographically dispersed servers (nodes) will make your pages load faster from the user's perspective - Content will be served from the nearest geographical location server (node) of the user.

2693 questions
1028
votes
23 answers

Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail

What would be a good way to attempt to load the hosted jQuery at Google (or other Google hosted libs), but load my copy of jQuery if the Google attempt fails? I'm not saying Google is flaky. There are cases where the Google copy is blocked…
Nosredna
  • 74,873
  • 15
  • 91
  • 122
454
votes
6 answers

Downloading jQuery UI CSS from Google's CDN

I am planning on using Google to download the jQuery lib for both UI and Core. My question is, do they allow me to download the CSS for it or should I have to host it myself? Also if I use Google to load how should I load other plugins? Can I…
coool
  • 7,725
  • 12
  • 50
  • 77
237
votes
4 answers

Purpose of installing Twitter Bootstrap through npm?

Question 1: What exactly is the purpose of installing Twitter Bootstrap through npm? I thought npm was meant for server side modules. Is it faster to serve the bootstrap files yourself than using a CDN? Question 2: If I were to npm install…
James Fazio
  • 5,990
  • 9
  • 34
  • 47
187
votes
17 answers

Microsoft CDN for jQuery or Google CDN?

Does it actually matter which CDN you use to link to your jquery file or any javascript file for that matter. Is one potentially faster than the other? What other factors could play a role in which cdn you decide to use? I know that Microsoft,…
Xaisoft
  • 42,877
  • 83
  • 270
  • 415
170
votes
7 answers

Why should I use Google's CDN for jQuery?

This may be obvious to some, but I've been wondering: why should I depend on Google's server to host jQuery for my site? Is it only because it loads faster this way?
Yvette
  • 1,731
  • 2
  • 11
  • 8
162
votes
2 answers

backbone.js & underscore.js CDN recommendation?

Is there any CDN sources for backbone.js and also underscore.js to use in our projects?
ward87
  • 2,916
  • 7
  • 24
  • 27
148
votes
10 answers

How to load local script files as fallback in cases where CDN are blocked/unavailable?

I’m using a CDN for the following…
raklos
  • 26,260
  • 55
  • 172
  • 278
147
votes
13 answers

Force CloudFront distribution/file update

I'm using Amazon's CloudFront to serve static files of my web apps. Is there no way to tell a cloudfront distribution that it needs to refresh it's file or point out a single file that should be refreshed? Amazon recommend that you version your…
Martin
  • 4,897
  • 11
  • 40
  • 59
144
votes
2 answers

Is there a hosted version of Twitter Bootstrap?

Is there a hosted version of Twitter Bootstrap? Something similar to the hosted version of jQuery on Google?
Christian Strang
  • 8,336
  • 4
  • 39
  • 50
110
votes
11 answers

How to fallback to local stylesheet (not script) if CDN fails

I am linking to the jQuery Mobile stylesheet on a CDN and would like to fall back to my local version of the stylesheet if the CDN fails. For scripts the solution is well known: