Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Automatically insert individual svgs for icons instead of using the entire font-awesome library #15163

Closed
2 tasks done
jazir555 opened this issue May 31, 2021 · 2 comments

Comments

@jazir555
Copy link

jazir555 commented May 31, 2021

  • I have searched for similar features requests in both open and closed tickets and cannot find a duplicate.
  • The feature is still missing in the latest stable version of Elementor ( Elementor Pro. )

What problem is your feature request going to solve? Please describe.

Currently the entire font-awesome libraries for solid, regular and brands are used when only a few icons from these massive libraries are in use. This leads to a lot of extraneous code and page weight, which really slows down sites. https://elementor.com/help/speed-up-a-slow-site/. This url has instructions for how to remove font-awesome entirely, but requires that you have a child theme and have some knowledge of how to use them.

Describe the solution you'd like

Instead of having to manually paste this code inside of a child theme, I think Elementor should automatically download the individual svg files from font-awesome and insert them where the icons are being used, to prevent the full library from needing to be downloaded. This could cut page weight by 150 kb or more depending on how few icons are used.

Describe alternatives you've considered

https://elementor.com/help/speed-up-a-slow-site/

Manually removing font-awesome as described in this link above, and then manually inserting icons via svg files. This is time consuming and cumbersome. You may also miss a few icons that are scattered throughout your site since disabling them globally requires that each icon be manually replaced. This solution would automatically replace all icons with the correct individual icon files to reduce page sizes.

@shimsa
Copy link

shimsa commented Jun 1, 2021

+1

@DorShahar
Copy link

Merged issue

I merged this issue with #11772, which is on the same subject so we could deal with it more efficiently.
Please feel free to continue the conversation there.
Thanks for your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants