Title: Plugin kills my js
Last modified: August 22, 2016

---

# Plugin kills my js

 *  Resolved [andy999](https://wordpress.org/support/users/andy999/)
 * (@andy999)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-kills-my-js/)
 * After some testing (ie deleting parts of the plugin to see what causes it) I’ve
   discovered that this function is killing my js and throwing up errors in my already
   working js in the console.
 *     ```
       if ( is_admin() ) {
       	add_action( 'plugins_loaded', 'incom_admin_init', 15 );
       }
       else {
       	add_action( 'plugins_loaded', 'incom_frontend_init', 15 );
       }
       ```
   
 * It keeps telling me functions that ‘Uncaught TypeError: undefined is not a function’
   for things that were previously working just fine.
 * [https://wordpress.org/plugins/inline-comments/](https://wordpress.org/plugins/inline-comments/)

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

 *  Plugin Author [kevinweber](https://wordpress.org/support/users/kevinweber/)
 * (@kevinweber)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-kills-my-js/#post-5274574)
 * Hi Andy,
 * thanks for contacting me!
    Can you tell me more about your issue? From which 
   version of Inline Comments have you updated? What other plugins/JS is not working
   because of those lines? Which of those lines is causing the error? (The first
   or the second “add_action()”?
 * Best regards,
 * Kevin
 *  Thread Starter [andy999](https://wordpress.org/support/users/andy999/)
 * (@andy999)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-kills-my-js/#post-5274580)
 * Latest version of inline comments.
 * It doesn’t stop any plugins working, it just stops js/jquery working at all, 
   site wide.
 * I removed the second ‘add_action’ and js works properly but the plugin doesn’t.
 *  Thread Starter [andy999](https://wordpress.org/support/users/andy999/)
 * (@andy999)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-kills-my-js/#post-5274775)
 * Kevin, it was my mistake, sorry!
 * My jQuery functions weren’t written in noconflict mode, I was using $ instead
   of jQuery shortcut.
 * Once that was fixed it was fine, a silly mistake!
 * PS. Your plugin is fantastic and I’d be interested in using it in a commercial
   theme that I’d be building at some point, would you be able to offer me a developer
   license at a reasonable price?
 *  Plugin Author [kevinweber](https://wordpress.org/support/users/kevinweber/)
 * (@kevinweber)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-kills-my-js/#post-5274789)
 * Hi Andy,
 * yeah, great that you’ve solved it yourself!
    Would be great if you give my plugin
   a five-star rating [here](https://wordpress.org/support/view/plugin-reviews/inline-comments).
   And than contact me using my mail address from [that site](http://kevinw.de/kontakt/).
 * I’m looking forward to hearing from you!
 * Regards,
 * Kevin

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

The topic ‘Plugin kills my js’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/inline-comments_fbfcfe.svg)
 * [Inline Comments](https://wordpress.org/plugins/inline-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-comments/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [kevinweber](https://wordpress.org/support/users/kevinweber/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-kills-my-js/#post-5274789)
 * Status: resolved