2011-09-28, 03:03:05
If I need to include jQuery for a plugin or theme, I know how to do that. But if there are two or more plugins or themes that use jQuery, they'll all include their own copies, which would cause a conflict between multiple jQuerys on the final page.
To my knowledge the only way to avoid that is to manually edit out all of the jQuery includes in the themes or plugins that a site is using, except for one.
I suppose I could instead output a bit of javascript that checks if jQuery is available on the page, and of not it would include its own, but that seems like a very messy solution to me. Is there a better way of doing this?
Chris, are there any plans for something similar to Wordpress's wp_enqueue_script function?
To my knowledge the only way to avoid that is to manually edit out all of the jQuery includes in the themes or plugins that a site is using, except for one.
I suppose I could instead output a bit of javascript that checks if jQuery is available on the page, and of not it would include its own, but that seems like a very messy solution to me. Is there a better way of doing this?
Chris, are there any plans for something similar to Wordpress's wp_enqueue_script function?
Google Analytics plugin 0.2: http://get-simple.info/forum/topic/2549/...cs-plugin/