How to add FA icons and not make page weight high

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
tommy888
 
 
Posts: 214
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

How to add FA icons and not make page weight high

Post by tommy888 »

WB publishes the whole fontawsome icon file and it increases page weight drastically. Is there a chance to make it so that only links to the used icons in the project where published?

It's possible manually add a link to every icon but I'd prefer to use WB to do the job.

I mean WB adding the link to FA in the head

" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">

and link to the chosen icon in the body
<i class="fab fa-adobe"></i>

and then generate code for personalised style.

Is it possible or planned in the future?

Thanks for reply.
User avatar
Pablo
 
Posts: 21589
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to add FA icons and not make page weight high

Post by Pablo »

You can also publish the Font Awesome Icon (and other icons) as single SVG image.
User avatar
tommy888
 
 
Posts: 214
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: How to add FA icons and not make page weight high

Post by tommy888 »

Pablo that's a kind of solution. Is there an option in WB to choose how icons are published? Thank you.
User avatar
Pablo
 
Posts: 21589
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to add FA icons and not make page weight high

Post by Pablo »

You can set the output format in the properties of the FontAwsome icon.
User avatar
tommy888
 
 
Posts: 214
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: How to add FA icons and not make page weight high

Post by tommy888 »

Great Pablo!
But there might be a global option in Publish Mananger to set publish fontawesome, icons as SVG. It really reduces pageweight and time in my case and many others who care about loading times:)
I need to do it manually with every single icon whatever it is fontawesome, icon font, shape etc

Thanks
Post Reply