Created
August 7, 2012 19:10
-
-
Save sapegin/3288482 to your computer and use it in GitHub Desktop.
RequireJS in Wordpress theme
I've been working on a WP site and am currently using RequireJS to load jQuery core from wp-includes/js/jquery. But because of how WordPress works, if I install a jQuery-dependent plugin via WP-Admin later on, the plugin will install jQuery core again. The end result is that the page will have two references to jQuery. Just curious if anyone has a workaround for this? Thanks in advance.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i needed to deregister the default jquery instance on functions.php
before calling it via require.js