I don’t know what dequeue means or does. I just simply want to removed dashicons all together. I don’t want to load it. And I noticed that MMM loads it. I don’t mind it show up on the admin.
After adding this code to function it seems like dashicons is not loading anymore.
function megamenu_dequeue_scripts() {
wp_dequeue_script( 'megamenu' );
wp_dequeue_script( 'hoverIntent' );
}
add_action( 'wp_enqueue_scripts', 'megamenu_dequeue_scripts', 9999 );
function megamenu_dequeue_styles() {
wp_dequeue_style( 'dashicons' );
}
add_action( 'megamenu_enqueue_public_scripts', 'megamenu_dequeue_styles', 9999 );
But there’s like a second that I see something appeared in replaced of the icon and then disappeared. Is that how it is? Is it possible to get rid of it?