-
Notifications
You must be signed in to change notification settings - Fork 862
Loading jQuery in footer - some plugins have issues #24
Comments
Hi, Best, DanielDaniel Klose On Apr 8, 2014, at 2:40, James Barlow notifications@github.com wrote:
|
Foundation requires a newer version of jQuery than is shipped with Wordpress, so for non-admin pages you have to enqueue a new version. Foundation/FoundationPress sticks the jQuery and custom javascript at the end of the body, which is sensible, but does cause issues with some plugins that assume jQuery availability. Local fallback is handled elsewhere. |
Ok, thanks for the headsup! Daniel Klose On Apr 8, 2014, at 19:18, James Barlow notifications@github.com wrote:
|
@jmbarlow 👍 All scripts are now registered and enqueued properly. jQuery are included in the header as you suggested, in order to avoid compability issues with third party plugins. See 00aa377 for more info. Thanks for your constructive feedback! |
I've noticed a few issues with plugins that assume Wordpress will load jQuery in the header, whereas FoundationPress is enqueing in the footer.
http://wptest.io/ data includes a Videopress example that hits this problem [not core, but one of Automattic's plugins].
I've opted to return jQuery to the header by setting the last paramater on the enqueue to
false
(and stick in a cdn version)The text was updated successfully, but these errors were encountered: