- Issue created by @arantxio
- Merge request !37Issue #3449108: Add the Font Awesome library locally before CDN β (Open) created by arantxio
- Status changed to Needs review
9 months ago 2:07pm 22 May 2024 - π³π±Netherlands arantxio Dordrecht
I've created a Merge request for this issue, please review.
- First commit to issue fork.
- πΊπΈUnited States mortona2k Seattle
I merged dev into the issue fork branch.
I removed this part from composer.json, since it's already specified in the info file:
- "require": { - "drupal/core": "^8 || ^9 || ^10" - }
- πΊπΈUnited States mortona2k Seattle
Patch for 2.9, including latest dev code.
- πΊπΈUnited States japerry KVUO
Generally I like the approach, one question/concern though -- do we need to display a warning urging people to add the font awesome library manually? If the only way to remove the warning is by getting the library manually, why not just require the library?
- πΊπΈUnited States mortona2k Seattle
I'm not really sure, was just blindly rerolling a patch I was using.
I think the way it **should** work is using the CDN by default without issue, and **allowing** you to to use a local version.
- π³π±Netherlands arantxio Dordrecht
@japerry It's just best practice when hosting your website to get the libraries locally. This is so that your libraries don't suddenly get updated when its not required and also so that in case a CDN is a little slow to reach your end users wont notice it, because its just loaded through your webserver.
As for the warning, its something I see basically all modules do, so its something I also implemented. We can implement something so the warning is suppressible, but I don't think it's worth it, as people can choose to ignore it anyway.
- Merge request !45Issue #3449108: Add the FA library locally before CDN β (Open) created by mortona2k
- πΊπΈUnited States mortona2k Seattle
mortona2k β changed the visibility of the branch 3449108-fetch-fa-library to hidden.
- Status changed to Needs work
6 months ago 8:52pm 29 August 2024 - πΊπΈUnited States mortona2k Seattle
Without using this patch, and no libraries/font-awesome, it looks like fontawesome icons are available, but I can't see them in the UI.
If I install the fontawesome module, the icons appear.
The patch doesn't change the library being used, it's still loaded by fontawesome.
With the patch and libraries/font-awesome, and no fontawesome module, no icons appear.
I don't think the CDN is working at all? Seems like it depends on fontawesome to load the library.