Title: Performance : Dequeue the script postratings-js.js
Last modified: June 13, 2019

---

# Performance : Dequeue the script postratings-js.js

 *  [stixtsr](https://wordpress.org/support/users/stixtsr/)
 * (@stixtsr)
 * [7 years ago](https://wordpress.org/support/topic/performance-dequeue-the-script-postratings-js-js/)
 * 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)

 *  [rom174](https://wordpress.org/support/users/rom174/)
 * (@rom174)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/performance-dequeue-the-script-postratings-js-js/#post-11770787)
 * Hello [@stixtsr](https://wordpress.org/support/users/stixtsr/),
 * Did you find a solution about it ?
 * Thanks

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/wp-postratings/assets/icon.svg?rev=978014)
 * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postratings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postratings/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [rom174](https://wordpress.org/support/users/rom174/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/performance-dequeue-the-script-postratings-js-js/#post-11770787)
 * Status: not resolved