• Resolved ChickenDipper

    (@chickendipper)


    Please include an option to not inject the frontend.js and css files if not required.

    This would save one or two of the many requests a wordpress site makes when loading 🙂

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ChickenDipper

    (@chickendipper)

    A functions.php method for any that are optimizing wordpress or would like the remove the js and css frontend injected that allows hiding of tags in the frontend.

    It would still be great if this was a check box in the plugin.

    function dequeue_taxopress_assets() {
    wp_dequeue_style('taxopress-frontend-css');
    wp_deregister_style('taxopress-frontend-css');

    wp_dequeue_script('taxopress-frontend-js');
    wp_deregister_script('taxopress-frontend-js');
    }
    add_action('wp_enqueue_scripts', 'dequeue_taxopress_assets', 100);
    Plugin Author Steve Burge

    (@stevejburge)

    Thanks for the detailed report, @chickendipper. Yes, I’m sure we can add this in an upcoming TaxoPress release.

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

The topic ‘Remove CSS and JS from frontend’ is closed to new replies.