• Hi Lester,

    it seems the script and style from the plugin is being loaded every single page.
    Performance wise not ideal.

    I tried to deque the script using a plugin such as perfmatters but it doesnt respect.

    next, i try to dequeue using the custom function:

    function dequeue_post_rating_scripts( ){
        global $wp_scripts;
        wp_dequeue_script( 'wp-postratings' );
    }
    add_action( 'wp_print_scripts', 'dequeue_post_rating_scripts', 9999 );

    how do I enqueue it back from my CDN?

    I have an error “ReferenceError: ratingsL10n is not defined”

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Performance : Dequeue the script postratings-js.js’ is closed to new replies.