Title: JavaScript incompatibility with other plugins
Last modified: August 22, 2016

---

# JavaScript incompatibility with other plugins

 *  [Koen Van den Wijngaert](https://wordpress.org/support/users/vdwijngaert/)
 * (@vdwijngaert)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/javascript-incompatibility-with-other-plugins/)
 * Hello,
 * In /inc/js/script.js you use following code:
 *     ```
       $.ajaxSetup({
               type: "POST",
               url: ajaxurl,
               dataType: "html"
           });
       ```
   
 * Unfortunately, this sets the defaults for ALL subsequent AJAX requests, also 
   those of other plugins. If those plugins assume jQuery defaults (why wouldn’t
   they?), there will be some conflicts with this setup.
 * If you request a json file, while jQuery thinks it’s getting a html file, you’re
   gonna have a bad time.
 * If you don’t want to redundantly use those values in all your ajax calls, use
   something like [jQuery extend](http://api.jquery.com/jquery.extend/) instead.
 * Best regards,
 * Koen
 * [https://wordpress.org/plugins/inline-ajax-comments/](https://wordpress.org/plugins/inline-ajax-comments/)

The topic ‘JavaScript incompatibility with other plugins’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Koen Van den Wijngaert](https://wordpress.org/support/users/vdwijngaert/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/javascript-incompatibility-with-other-plugins/)
 * Status: not resolved