• Hi there,

    I’m using Caxton (v1.21) for my site and it looks like it is still calling Font Awesome for the All.Css (https://use.fontawesome.com/releases/v5.5.0/css/all.css), when running a GT Metrix speed test or other speed tests.

    I’ve removed the FA Brands for social icons and have replaced the shopping cart icon (FA Solid 900) with an icon image I’m hosting via the site.

    Using the Asset CleanUp plugin, I’ve unloaded Font Awesome site wide and have added the below code to functions.php.

    I don’t want to use Font Awesome, because it is slowing down my site load speed.

    Any support and tips would be greatly appreciated.

    Code added to Functions.php

    //* TN Dequeue Styles - Remove Font Awesome from WordPress theme
    add_action( 'wp_print_styles', 'tn_dequeue_font_awesome_style' );
    function tn_dequeue_font_awesome_style() {
          wp_dequeue_style( 'fontawesome' );
          wp_deregister_style( 'fontawesome' );
    } 

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

Viewing 1 replies (of 1 total)
  • Thread Starter mh811

    (@mh811)

    Hi there,

    I found the below reference to font awesome in the Caxton CSS file. Also, when I deactivate the Caxton plugin and run a gt metrix site speed test the all.css file doesnt get loaded.

    Is there any chance you can remove the need for your amazing plugin to load font awesome?

    It significantly slows down site load speeds and I would think if users needed it then they could use font awesome plugin.

    Alternatively, is there a way i can stop font awesome being loaded on erikaharder.com when using the Caxton plugin?

    The web dequeue function listed in the above post, didn’t work.

    Appreciate any help with this.

    Caxton plugin css

    .fas.fab{font-family:Font Awesome\ 5 Brands;font-weight:400}

Viewing 1 replies (of 1 total)
  • The topic ‘Remove FontAwesome loading All.CSS’ is closed to new replies.