Hey guys,<p>Thomas from cdnjs here, we have been on HN before.<p><a href="https://news.ycombinator.com/item?id=4412044" rel="nofollow">https://news.ycombinator.com/item?id=4412044</a> - 671 days ago
<a href="https://news.ycombinator.com/item?id=2828516" rel="nofollow">https://news.ycombinator.com/item?id=2828516</a> - 1057 days ago<p>cdnjs has been very successful since inception in early 2011, this is mainly due to Cloudflare's early and ongoing sponsorship of the project.<p>According to BuiltWith, we have over 187,000 websites using cdnjs in production - <a href="http://trends.builtwith.com/cdn/CDN-JS" rel="nofollow">http://trends.builtwith.com/cdn/CDN-JS</a><p>According to w3techs, we have just recently overtook Microsoft's cdn, which puts us in around third place for market size - <a href="http://w3techs.com/technologies/comparison/cd-cdnjs,cd-microsoftajax" rel="nofollow">http://w3techs.com/technologies/comparison/cd-cdnjs,cd-micro...</a><p>jsbin, codepen and jsfiddle users generally use our tool for code snippets.<p>We have had no major downtime and only one brief security problem which was due to a library version which had insecure swf's.<p>We have 100's of developers contributing to the project, and our repository has become quite active - <a href="http://www.ohloh.net/p/cdnjs" rel="nofollow">http://www.ohloh.net/p/cdnjs</a><p>As always our thanks goes out to the community who help us keep the libraries up to date and Cloudflare's dedication to speeding up the web. A special mention goes to Pete Cooper who has been the primary moderator and sole reason for our growth in the last 12 months - <a href="https://github.com/petecooper" rel="nofollow">https://github.com/petecooper</a><p>I will try to answer other questions in the thread today.<p>Edit: With regards to peoples privacy enquiries, because Cloudflare is our official mirror it is best to consult their privacy policy. I have been working with <a href="http://taskforce.is" rel="nofollow">http://taskforce.is</a> over the last year on campaigns against mass surveillance so I do take the issue very seriously.<p>Edit: Also a lot of users don't use cdnjs in production, it's just very convenient when developing to be able to quickly include scripts.<p>Atom Plugin - <a href="https://atom.io/packages/cdnjs" rel="nofollow">https://atom.io/packages/cdnjs</a>
Sublime Plugin - <a href="https://github.com/dafrancis/Sublime-Text--cdnjs" rel="nofollow">https://github.com/dafrancis/Sublime-Text--cdnjs</a>
I see no privacy policy so you have to assume that they will log all they can about your visitors.<p>In these global dragnet surveillance ridden times it should be a no-brainer but please don't expose your visitors to third-party websites, respect their privacy, host your assets yourself.
Well, this also allows powerful actors to inject malicious code into your page. I think they can easily be forced via an NSL to target certain websites or client IPs.
So now the big question is... any reason to switch to this from googleapis.com? Short term loss in cacheablilty since the Google one is so widespread, long term less dependence on the Google corporation. Insecurity since CloudFlare seems like a prime target for an acquisition/acquihire.
There are so may factors at play in determining the amount of gain from using such a service, e.g.,<p>1. How widespread the usage is. The more widespread it is, the better the chance of finding the resource in the browser cache itself, instead of having to make external request.<p>2. Geo distribution of resource by the CDN. The closer the nearest CDN server to the end user, the quicker the delivery.<p>3. Popularity of CDN domain used to serve the resource. Since a DNS request is potentially involved in fetching the resource, the domain name should be widely used to keep the DNS cachces warmed up.<p>I am especially skeptical towards adding DNS calls to my page. One for HTML and one-two for static resources is what I have seen works best in practice, especially with modern browsers that do not have the <i>two parallel downloads per domain</i> limit.
You can use <a href="http://www.cdnperf.com/" rel="nofollow">http://www.cdnperf.com/</a> to figure out which may be best for your circumstances (lowest HTTPS latency, downtime etc.)