Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPI

    (@rohanmehta19)

    Hi
    Thanks for the feedback. Dequeuing scripts/styles at the site wide level is not the main aim of this plugin because that can be very easily achieved by adding below code in your functions.php

    function dequeue_unnecessary_scripts() {
        wp_dequeue_style( 'some_style_handle' );
        wp_dequeue_script( 'some_script_handle' );
    }
    add_action( 'wp_print_scripts', 'dequeue_unnecessary_scripts' );

    Regards

    Thread Starter G

    (@gnetworkau)

    Excellent! Your plugin will be handy to extra lighten some pages. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Site-wide?’ is closed to new replies.