I was looking for a CDN to link to for FontAwesome. Their website instead provides a .js link (rather than using, for instance, this Open Source CDN I found)
Does it check the link (or maybe try several) to the CDN?
Font Awesome CDN is the easiest way to get Font Awesome on your website or app, all with just a single line of code.
Font Awesome works well with Require. js, especially if you are using Web Fonts.
If you are using the free version of font-awesome, use cdnjs.
For pro users, Setup Webfont with CDN will provide insights on how to setup CDN with pro.fontawesome.com
##use.fontawesome.com
is Font Awesome's own CDN.
Heading
FontAwesome has its own paid option and analytics on usage provided by the CDN among many other features. Thats why they prefer thier own CDN for the end users.
It looks like from deobfuscating and quickly skimming through the JS file that it is a "1 and done" type of solution, meaning:
It loads the necessary CSS, sets the font type for the images, and also does some sort of reporting on who is using their stuff.
It also looks like it might bind their icons to the use of fa
within a class
It doesn't really look like there is an obvious advantage to using the .js file over the CDN.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With