As a plugin developer, how to deal with theme developer loading jquery from google?

Any Theme developer that dequeues core-bundled jQuery in order to enqueue some other version – any other version, bundled, CDN, etc. – is _doing_it_wrong(), period. Core, active Theme, and active Plugins all rely on a known version of jQuery being available.

What to do about it?

  1. Tell the Theme developer that he’s _doing_it_wrong(), and ask for a fix.
  2. Tell your Plugin users to use a Theme hosted in the official WordPress Theme directory, since every Theme hosted there is prohibited from dequeueing core-bundled jQuery
  3. Instruct your Plugin users how to override the Theme’s jQuery override, via a site functionality Plugin that dequeues the Theme’s custom jQuery, and re-enqueues core-bundled jQuery
  4. Instruct your Plugin users how to patch the Theme’s incorrect jQuery implementation, by adding no-conflict wrappers

Leave a Comment