why not just include teh cdn in your base tempalte
???? I don’t know. On their website the 2 options are “kits” or download
I use the kits
after you sign up does it have instructions for silverstripe?
There's nothing SilverStripe specific. The kit is deployed with a single JS file. So you can just add this to your page with a
Requirements call in the usual way
Using the kits is in theory more efficient, since it only loads the subsets you need, and does everything asynchronously
As opposed to loading the entire CSS with the page, which can be a bit bulky
oh really? i thought it still included everything
so it has magic like webpack coolies, is that on the silverstripe level in requirements?
You can also specify whether to use SVG or Webfonts
so I’ve just registered, & it says to use it like this:
Copy your kit's code into the <head> of each template or page in your project where you want to use Font Awesome.. so If I just put that in the main http://Page.ss it should work right? no need for requirement in controller?
Yep, that'll be fine
end of the day all requirments (mostly) does is make a list of all the scripts and put them in your http://page.ss head anyway
Well, at the end of the page in the case of JS
It doesn’t really explain what a “kit” is….
kit is usally like
js + css +font files
it comes down to if you want to include in say your own bundler or just let the browser do it stuff
or maybe you only want a particiular part, just use a kit as dorset suggested