astroid-framework icon indicating copy to clipboard operation
astroid-framework copied to clipboard

reducing the number of fontawesome requests

Open SerGun78 opened this issue 11 months ago • 7 comments

hi all. My life hack on how to reduce the load on the site and increase loading speed. In contactinfo.php, change all icons to solid. There are two solid (phone +mobile) and two regular (envelope and clock). So I changed the icons for mail and work time from regular to solid, now one regular icon font does not load, i.e. the number of requests decreased by one. At the same time, we must not forget that there is no longer a need to add icons from regular to the site, so that the regular font will not be loaded again. firefox_yx7oJyXGTC

SerGun78 avatar Mar 04 '24 15:03 SerGun78

“ Need for Speed ” 🏎 Thanks for the hint @SerGun78

Chacapamac avatar Mar 06 '24 14:03 Chacapamac

Use FontAwesome JS load in FontAwesome options instead CSS load. Disable FontAwesome CSS, Include FontAwesome JS and SVG folders. This will load only each needed SVG instead entire TTF, OTF or other fonts files.

@sonvnn check this as an option for the template options ;)

uzielweb avatar Mar 06 '24 15:03 uzielweb

Use FontAwesome JS load in FontAwesome options instead CSS load. Disable FontAwesome CSS, Include FontAwesome JS and SVG folders.

@uzielweb — Not sure where to find these options?

Chacapamac avatar Mar 06 '24 17:03 Chacapamac

In plugin there is not CSS or JS option. there is CDN or Local image

Giorgi625 avatar Mar 06 '24 17:03 Giorgi625

Does not exist this option. You can add it as a script to the header and upload all SVG and JS files needed. My suggestion is to create this as an extra option @sonvnn

uzielweb avatar Mar 06 '24 22:03 uzielweb

Thank you! I will check it in the next versions.

sonvnn avatar Mar 07 '24 02:03 sonvnn

I tested the loading option via js fontawesome. According to my observations, this does not lead to a decrease in requests and the weight of the site, but rather increases the load. maybe I'm wrong. If someone checked the proposed option, please provide your changes at site speed.

SerGun78 avatar Mar 16 '24 09:03 SerGun78