Speed Issue - Font Awesome loading everywhere in Wordpress posts

165 views Asked by At

I use wordpress along with Visual composer. After reviewing speed data in Gtmetrix, I noticed that Font awesome (woff2) is loading everywhere, even on posts unused. I use fontello only in home page.

The Woff2 is loaded by visual composer in this path /wp-content/cache/min/1/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/css/font-awesome.min.css?ver=1665339125

Is there anyway to make this load only on pages/posts where used?

1

There are 1 answers

2
Muntasir Aonik On

Well, You can use the asset cleanup plugin to achieve it.

Go to Plugins > Add New and search for it by name. Locate Asset Cleanup in the search results and click the Install Now button, then click Activate once it’s done installing.

After that, open the page where you don't want to load it, on below you will get unload button beside the script names. Just select it. Done.