The other day I came across a new interesting service on the network, which had never been mentioned on Habré, so I decided to share this article with the community.
In this article you will learn about the
jsDelivr web service, what its purpose is and how to apply it on your site. To begin with, this web service is absolutely
free and not a commercial project. jsDelivr solves two main tasks:
- It provides js developers with the ability to quickly and free place all static files of their project on a publicly available CDN hosting.
- It provides webmasters with the ability to download all the files (javascript / css / images) that any plugin or library uses from a fast CDN hosting, thereby removing the load on their own server.
jsDelivr - sponsored by two US firms NetDNA which provides free CDN traffic for its Enterprise network and UserVoice which provides a platform for processing, administering requests and supporting users.
The principle of the site
If you are a js developer or just any users who want to use the js project but do not want to upload the file to your server, then you can search for it or if it is not on the service you can send a link to the site with the project description and after the request is processed by the administrator All files of this project will be uploaded to CDN and it will be possible to find them on the main page of the service.
After that you can copy the direct link from the site and use it to upload files in your project.
Comparison of the service with other public CDN hosting
Title | Google CDN | Yandex CDN | jsDelivr |
---|
Latency | 49ms | 115ms | 64ms |
---|
Number of projects | eleven | ~ 30 | 267 |
---|
Restrictions | Only the most popular libraries | Only the most popular libraries | Everything is accepted |
---|
For the latency test, the service
www.site24x7.com/ping-test.html was used
.
')
WordPress Plugin
The jsDelivr service also provides a plugin for WordPressa that automates and simplifies integration with the service.
The plugin automatically scans the site and if it finds suitable links for remote download, then it replaces them with links from the hosting, thereby speeding up the work of the site.
wordpress.org/extend/plugins/jsdelivr-wordpress-cdn-plugin
Resource usage example
A vivid example of the use of the resource will be some kind of js library written by the developer for general use, the planned audience is in different countries of the world. Due to the speed and free use of this CDN - this service is the perfect solution to this problem.