Content Delivery Networks
How to Host Your Web Files for Free on CDNs
Setting up a Free Public CDN for NumBox
There are several free distributed file hosting services you can use for your custom CDN. The most popular is DropBox, which can easily be set up as follows:
Sign up for a free DropBox account, if you don't already have one.
No credit card required. All you need is a name, email address and password.
- When logged into the DropBox web site, navigate to your “public” DropBox folder and create another folder beneath this called “cdn”.
Right click on one of the files you placed in your CDN folder, (not the folder itself,) and select “Copy public link”.
You'll now see a public link that you can copy and use in your web site to point to your CDN file. It will look something like this:
Use the public links to your CDN files in your web pages. For example, you can place this in your
Using an Existing Free Public CDN for jQuery
For the main jQuery library, you are better off using one of the existing, popular, public CDNs, in particular the one provided by Google, which seems to give the best performance overall. This is highly recommended as the jQuery library is fairly large. Since a lot of web sites use Google’s CDN for jQuery, odds are that your visitors' web browsers have already cached a copy of the jQuery library. This means that they won't need to download it. You can’t get much faster than that! Adopting Google’s CDN is easy. You can adjust the version number, (1.11.0 in this example,) as desired: