Font Awesome Manager

Font Awesome Manager 1.2.7

No permission to download
I reinstalled the plugin, I don't know why there was no improvement in mobile speed as before.
 

Attachments

  • 278A52CD-B7F1-4798-AFC3-B15D666DDE63.webp
    278A52CD-B7F1-4798-AFC3-B15D666DDE63.webp
    40.4 KB · Views: 16
Read the FAQ and learn how things do work :)
TL/DR: Enable "Automatically add missing icons" for some time and increase log level.
Thank you for the reminder, I did enable the feature - and all logging possible. I haven't seen any logs yet.
 
This may be a dumb question but are the fonts constantly checked/rebuilt or is it a one-off?

Rather than install anything on the server, is transfonter a suitable option (if it's only ever ran once I don't see why it wouldn't be but if it's constantly ran on a cron I can see why we'd want it locally).
 
This may be a dumb question but are the fonts constantly checked/rebuilt or is it a one-off?
If Build Mode is set to Automatic,
FAM will monitor Add-ons (Install, Uninstall, etc.), templates, style properties and other entities that might contain FA references and does trigger rebuilds If necessary.

So Ideally (though that can't be guaranteed as there might be places that are not monitored) it should catch changes automatically.

A cron would also be possible, but I didn't like this idea as it seems a bit waste of resources to constantly check for changes when most of the time there would not be any changes.

Rather than install anything on the server, is transfonter a suitable option (if it's only ever ran once I don't see why it wouldn't be but if it's constantly ran on a cron I can see why we'd want it locally).
Transfonter should be okay in most cases, but it can't be guaranteed that it will always work (afterall it's a webservice and therefore might be unavailable).

Furthermore it has a limit of 5000 characters for unicode ranges - should be enough in most cases but can be problematic if duotone icons are used extensively.
Last but not least: pyftsubset produces smaller files.

If you can I'd strongly recommended to use pyftsubset.
 
Last edited:
Yes. Make sure that CSS is properly cached (you must specifically configure CF to cache css.php, by default it will treat it as dynamic and pass the request though to the origin) and make sure that font resource files are properly cached as well (eg. query strings must not be ignored as those carry version info).

This would apply for any use case that involves (intermediate) systems (CDN, reverse proxy, etc.) that might cache content.
 
Yes. Make sure that CSS is properly cached (you must specifically configure CF to cache css.php, by default it will treat it as dynamic and pass the request though to the origin) and make sure that font resource files are properly cached as well (eg. query strings must not be ignored as those carry version info).

This would apply for any use case that involves (intermediate) systems (CDN, reverse proxy, etc.) that might cache content.

I don't suppose you have instructions to hand for explicitly caching css.php? Don't worry if not, it's not your job to support cloudflare and I'll figure it out.
 
Thanks for this awesome addon! 🎉

Feature request: Option to "automatically add missing icons" (maybe limited to a certain time for performance?)
Now with "info logging" enabled it brings good debugging info, but I will have to manually add the missing icons to the addon options. If not automatically adding them, maybe storing them into some "pending list" that we can easily copy paste into the options field? 🤔 :)
- Is there some drawback for auto-adding these?

nvm, this option already exists I see now 🤦‍♂️ :D

Bug report: When this addon is enabled we see the following error message in the developer tools console (visiting forum lists and opening threads). It stops when disabling the addon..
Code:
www.site.com/:1 Access to font at 'about:blank' from origin 'https://www.site.com' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
www.site.com/:3579 GET about:blank net::ERR_FAILED
The line 3579 contains:
Code:
<script type="text/javascript" data-pagespeed-no-defer>pagespeed.lazyLoadImages.overrideAttributeFunctions();</script><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><script>window.jQuery||document.write('<script src="/js/vendor/jquery/jquery-3.5.1.min.js?_v=6e3af500"><\/script>')</script>

Dunno if you know what the bug could be related to, I don't see why the jQuery lib would try and load some font from about:blank.

Cheers!
 
Thanks for this awesome addon! 🎉

Feature request: Option to "automatically add missing icons" (maybe limited to a certain time for performance?)
Now with "info logging" enabled it brings good debugging info, but I will have to manually add the missing icons to the addon options. If not automatically adding them, maybe storing them into some "pending list" that we can easily copy paste into the options field? 🤔 :)
- Is there some drawback for auto-adding these?

nvm, this option already exists I see now 🤦‍♂️ :D

Bug report: When this addon is enabled we see the following error message in the developer tools console (visiting forum lists and opening threads). It stops when disabling the addon..
Code:
www.site.com/:1 Access to font at 'about:blank' from origin 'https://www.site.com' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
www.site.com/:3579 GET about:blank net::ERR_FAILED
The line 3579 contains:
Code:
<script type="text/javascript" data-pagespeed-no-defer>pagespeed.lazyLoadImages.overrideAttributeFunctions();</script><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><script>window.jQuery||document.write('<script src="/js/vendor/jquery/jquery-3.5.1.min.js?_v=6e3af500"><\/script>')</script>

Dunno if you know what the bug could be related to, I don't see why the jQuery lib would try and load some font from about:blank.

Cheers!
Did a bit further digging and it isn't that line that triggers the weird load..

Also the problem only exists when logged in, not when visiting as a guest.

I checked the source of the page and see this:
Code:
<style></style>
<style>@font-face{font-family:'Font Awesome 5 Pro';font-style:normal;font-weight:300;src:url(about:blank)}.fal{font-family:'Font Awesome 5 Pro';font-weight:300}</style>

I also see that the error only happens when logging level is set to Info :) 👍
 
Do you think that you will be able to release a version that works for UI.X 2 for Material Design?

Also, I installed "apt install fonttools" but after installation I can't find any path to "pyftsubset".
"pyftsubset" should be somewhere in usr/bin, correct?
 
Top Bottom