3

I want to use SVG + JS for FA 5 (Pro) self-hosted. FA regards using the all.js which is > 3MB. Alternative I could use "certain styles" with smaller file sizes.

But I'm searching for a better integration - like a js searching for all used icons and loading only these instead of the whole library. Is there any recommendation?!

remy
  • 82
  • 8
  • Although it's a bit of a broad question, I think it's a nice one. Another thought; are you aware that under normal circumstances, the resources are being cached on the client? – Stefan Oct 22 '18 at 09:18
  • I'm aware of this, but the first/initial load will be very huge. Another thought may be some (FA-)server intelligence like saving all requested icons (per host) and serving them merged together. – remy Oct 22 '18 at 10:47
  • 1
    Looks like this has already been answered. It doesn't do an automatic search for icons being loaded, but it definitely enables you to just load the ones you want. https://stackoverflow.com/questions/47711951/font-awesome-5-bundle-via-npm – Trevor Nov 29 '18 at 00:08

0 Answers0