• Resolved antoniodee

    (@antoniodee)


    Hey, i tryed to unload dashicons and jetpack.css with this plugin but when i do a test on PageSpeed it says that those are still loading for some reason.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @antoniodee I’ve checked your website and no Dashicons or JetPack CSS files are loading. I believe it was a caching issue when you made the test. Can you re-check appending a query string such as /?nocache so that whatever tool you’re using will not access a cached page (often when query strings are used, the cache is not triggering, at least that’s what happens with performance plugins such as WP Rocket, it depends on the caching service, just use a unique query string that you know it’s never been used so it wasn’t cached in the first place).

    Also, you’re loading FontAwesome (same version: 4.7.0) twice. If you load the website with /?wpacu_unload_css=smr-fontawesome (which will unload one of the CSS files on-page request) appended to the homepage’s URL, you will notice the icons are still loading. You can also test using /?wpacu_unload_js=kirki-fontawesome-font which is the second file (JavaScript one) that loads it to check how the icons load.

    I’ll definitely choose to unload one of these two assets.

    Thread Starter antoniodee

    (@antoniodee)

    Hey i removed that kirki-fontawesome, but now the instagram icon became a bit ugly.
    Can you confirm me that now i load that asset only one time?

    Plugin Author Gabe Livan

    (@gabelivan)

    @antoniodee Yes, the Instagram icon is different. You can either load a custom icon there (e.g. an SVG) or see if there are different versions of Instagram from FontAwesome that you can load. Anyway, it was just a suggestion as I feel it’s worth optimizing it, but if you don’t have much traffic and you believe the page is fast enough, then it’s OK to leave it on, even though it’s just for an icon.

    PS: FontAwesome is loaded only one time now, yes! The JS file that I mentioned earlier is not loading anymore.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin not disabling assets’ is closed to new replies.