Title: Like Button JS
Last modified: September 30, 2021

---

# Like Button JS

 *  Resolved [fyfeopedia](https://wordpress.org/support/users/fyfeopedia/)
 * (@fyfeopedia)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/like-button-js/)
 * Hi,
 * I’m using WP-Rocket. It works well and I have a paid subscription and don’t want
   to change. I’ve found, however, that I need to exclude a couple of files from
   my theme (Blocksy) from the Deferred Javascript Option.
 * The Jetpack Like Button is also having issues – I think I need to defer a Javascript
   file for it, but I can’t figure out which file. Can you please let me know what
   file?
 * Thanks,
    Graham
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flike-button-js%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Bruce (a11n)](https://wordpress.org/support/users/bruceallen/)
 * (@bruceallen)
 * Happiness Engineer
 * [4 years, 8 months ago](https://wordpress.org/support/topic/like-button-js/#post-14928647)
 * Hi [@fyfeopedia](https://wordpress.org/support/users/fyfeopedia/)
 * It looks like you’l need to add an exception in the WP Rocket plugin settings.
   We can’t say exactly what setting you will need to tweak in WP Rocket. Maybe 
   WP Rocket support can help you with this.
 * We’d recommend excluding the following scripts:
 * wp-content/plugins/jetpack/_inc/build/postmessage.min.js
    wp-content/plugins/
   jetpack/_inc/build/jquery.jetpack-resize.min.js wp-content/plugins/jetpack/_inc/
   build/likes/queuehandler.min.js
 * Here’s how you can exclude them in WP Rocket: [https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js](https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js)
 * WP Rocket also has a tutorial on how to find the right JavaScript to exclude:
   [https://www.youtube.com/watch?v=kPrIwaTrq-4](https://www.youtube.com/watch?v=kPrIwaTrq-4)
 * Lastly, if you have any confusion on how to exclude script, you should contact
   WP Rocket support.
 *  Thread Starter [fyfeopedia](https://wordpress.org/support/users/fyfeopedia/)
 * (@fyfeopedia)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/like-button-js/#post-14967664)
 * Thanks Bruce for your help.
 * I had to go back to Rocket support to figure it out eventually.
 * For future reference, if anyone has the same issue it was caused by the “Enable
   for iframes and videos” option on the Media tab in WP-Rocket.
 * They fixed it by excluding the widgets.wp.com iframes.

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

The topic ‘Like Button JS’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [fyfeopedia](https://wordpress.org/support/users/fyfeopedia/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/like-button-js/#post-14967664)
 * Status: resolved