Hi,
I just wanted to raise awareness and maybe kick off some discussions on how to work with 3rd party libraries from external sources in Flarum base as well as in Flarum extensions.
I can totally understand that embedding CSS/JS files from well-known CDNs - like jsdelivr - is a common thing and easier to maintain. However as someone who prefers hosting stuff myself and concerning privacy, I tend to host them on the same server as e.g. Flarum is running on.
In a recent verdict in Germany, a webhoster was found guilty for violating GDPR because of using gfonts on their website. Based on the original judgement (or translated into English the reason was, that the IP address was shared when loading the font with Google without consent and that a font is not technical essentially required for the website to work properly.
(To note: In the community Flarum I'm hosting, we have three extensions using external libraries: flarum/emoji, fof/discussion-language and fof/reactions.)
That being said, wouldn't it make sense to integrate such resources into the extensions themself instead of re-using them? Or there any plans in releasing something in Flarum core to help extension developers with something like that?