What is cdnjs?
What is CloudFlare?
Want advice about which of these to choose?Ask the StackShare community!
What are the cons of using cdnjs?
I first wore my first domain cloudflare IE "https://rifqiarief.tk" until now can still be visited, I am really grateful to the cloudflare, thanks to rare to my website down cloudflare, before my website is down so often, because I'm wearing a great resource, and dilimit by my hosting party "be advised, I wear free hosting:D" now thanks to him, to my website really stable, unless it's really my full server connection my server, run faster, regardless of my location in Indonesia, unfortunately the cloudflare doesn't have a datacenter in Indonesia, if you don't believe me, please visit my website "https://rifqiarief.tk"
Their website only shows the prices for some aspects of the service, mainly just the bandwidth. But where they really get you is by charging high fees for everything else. Their basic rate only includes North America and Europe. You have to pay extra for other locations. Then hosting a subdomain costs $100 extra/month (no idea why, other CDNs do it for free), additional zones cost extra (normally free with other CDNs), no caching rules unless you pay extra, hidden fees for push data storage, etc etc.
CDNJS used to be a viable resource, and a great idea. Unfortunately, three years later, the maintainers have added so much cruft and useless layers of bureaucracy that makes it so difficult to add new libraries, that contributors are walking away rather than deal with the technical issues and arrogance of the maintainers. I'm sorry to say that the useful days of CDNJS are gone.
Cloudflare sits in front of the entire site providing HTTP2 and HTTPS, which is particularly important due the large number of SVG images for the headings that need to be send down to the browser in parallel. Cloudflare also manages the DNS for DKIM TXT records, a dynamic root ALIAS record to the Heroku application, and GeoIP country headers.
We use CloudFlare to protect our network from breaches as well as to reduce bandwidth on the servers themselves and therefore freeing up the bandwidth for our other projects. We also use CloudFlare for instant DNS propagation across the internet where possible.
We love the free SSL and extensive CDN network. DDoS protection is a plus. Great premium features for rapidly growing projects. Cloudflare has helped us forget about silly things like asset minification and email obfuscation.
We use CF for DNS hosting, since their AnyCast DNS provides the best latency in the business, and they support DNSSEC + IPv6. We don't use the CDN or website optimizations.
lots of good stuff available for free that you don't even think about it, default configuration saves you weeks of work, painless https setup, good to kickstart projects
We added MaxCDN in hopes we could offer a faster loading website to our blog readers.