[Solved] Choosing the most commonly used Content Delivery Network? [closed]


If you have a large number of scripts, you may be better off combining and minifying your scripts and serving them from your own locally hosted CDN, or your web server. Oftentimes it’s the number of requests that bottlenecks browsers instead of the filesize due to the fact that browsers can only download so many files at once. (FYI: IE7 allows 2. IE8+ and Chrome allow 6. Firefox allows 8 and the limit is configurable. Source) Minifying will reduce their size (often upwards of 50% or more) and combining will drastically reduce download times.

Regarding your questions:

  1. Even if you choose a popular CDN, there’s a better chance than not
    that the user doesn’t already have the jQuery library cached.
  2. No. This isn’t possible. If you request a resource, the browser will try
    to download it. If it isn’t available, the script loading will fail
    and you can handle downloading from an alternate source there. This
    is handy in cases where the CDN is down, but won’t help in your
    situation.
  3. No. You can’t check where their cached version of jQuery is from. This is
    likely due to the fact that such a feature would prove to be a security or
    privacy violation.
  4. Serving resources from a CDN is likely to have a positive impact. However,
    if you can serve all your resources from a single file, you’re saving bytes
    as well as additional network requests.

2

solved Choosing the most commonly used Content Delivery Network? [closed]