Cannot dequeue style anymore
-
Hello,
Since I don’t need all the css and js enqueued by NextGen (I have my own), I use to dequeue all that to speed up things and load as few resources as possible.add_action('wp_enqueue_scripts', 'deregister_css', 999); function deregister_css() { wp_dequeue_style('nextgen_basic_thumbnails_style'); }It used to work like a charm, but since version 3.9, it doesn’t work anymore, and I end up loading tons of css and js that I don’t want.
I can see in your code the wp_enqueue_style call within the function enqueue_frontend_resources. The handle I’m using is still correct so why can’t I dequeue those?
Commenting out the wp_enqueue_style is of course possible, but that’s not really a clean and serious option because any update would overwrite that.
Any help would be appreciated.
The topic ‘Cannot dequeue style anymore’ is closed to new replies.