Font files loading twice - Forum | JoomShaper
Solved SP Page Builder

Font files loading twice

Asked by Hector 5 years ago Last activity 5 years ago

Hi friends,

I am working on speed up my website. (I use the Fortune template).

I noticed that the same font files are being loading twice:

  • /components/com_sppagebuilder/assets/webfonts/fa-brands-400.woff

  • /components/com_sppagebuilder/assets/webfonts/fa-regular-400.woff

  • /components/com_sppagebuilder/assets/webfonts/fa-solid-900.woff

  • /templates/fortune/fonts/fa-brands-400.woff

  • /templates/fortune/fonts/fa-regular-400.woff

  • /templates/fortune/fonts/fa-solid-900.woff

Is there's a way to choose whether to load these from either the pagebuilder component or the template, but not both?

The ones loaded from pagebuilder are using the display:block property and the ones loaded from the template are using the display:auto property but Google PageSpeed Insights doesn't seem to like that and my website is suffering as a result:

https://i.imgur.com/mypozRv.png

Please advice.

Many thanks,
Hector

Accepted answer

Marked as the solution
Rashida Rahman Staff

Hi there!

Thanks for your query.

You can choose whether you want to load font awesome within the global configuration of the SP Page Builder or not.

Here is a screenshot for your ease:
https://prnt.sc/10k019x

Hope this helps!

Best Regards

2 more replies

Hector Asked this

Cool, thank you Rashida!

Best wishes,
Hector

Rashida Rahman Staff

You are always welcome:)

Log in to reply.