Title: Break JavaScript
Last modified: August 22, 2016

---

# Break JavaScript

 *  [jordantrainor](https://wordpress.org/support/users/jordantrainor/)
 * (@jordantrainor)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/break-javascript/)
 * Hi,
 * I think you need to check the JavaScript. I use jQuery and this plugin seems 
   to kill it when activated.
 * Thanks.
 * [https://wordpress.org/plugins/wp-favorite-posts/](https://wordpress.org/plugins/wp-favorite-posts/)

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

 *  Thread Starter [jordantrainor](https://wordpress.org/support/users/jordantrainor/)
 * (@jordantrainor)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/break-javascript/#post-5864895)
 * I just changed the enqueue to bring it in the footer to solve the issue.
 *     ```
       function wpfp_add_js_script() {
       	if (!wpfp_get_option('dont_load_js_file'))
       		wp_enqueue_script( "wp-favroite-posts", WPFP_PATH . "/wpfp.js", array( 'jquery' ), '', true );
       }
       ```
   
 *  Thread Starter [jordantrainor](https://wordpress.org/support/users/jordantrainor/)
 * (@jordantrainor)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/break-javascript/#post-5864992)
 * I also notice it breaks the way search and filter pro loads pages with shortcodes.
 *  [angryprogrammer](https://wordpress.org/support/users/angryprogrammer/)
 * (@angryprogrammer)
 * [11 years ago](https://wordpress.org/support/topic/break-javascript/#post-5865132)
 * Seems it has to do with the plugin using `.live()` in wpfp.js. It should be updated
   to use `.on()` instead for jQuery 1.7 or higher.
 *  [Christophe B](https://wordpress.org/support/users/christophe-b/)
 * (@christophe-b)
 * [11 years ago](https://wordpress.org/support/topic/break-javascript/#post-5865163)
 * same problem
 *  Thread Starter [jordantrainor](https://wordpress.org/support/users/jordantrainor/)
 * (@jordantrainor)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/break-javascript/#post-5865178)
 * Well spotted angryprogrammer.

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

The topic ‘Break JavaScript’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-favorite-posts.svg)
 * [WP Favorite Posts](https://wordpress.org/plugins/wp-favorite-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-favorite-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-favorite-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-favorite-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-favorite-posts/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [jordantrainor](https://wordpress.org/support/users/jordantrainor/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/break-javascript/#post-5865178)
 * Status: not resolved