Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Enqueue jQuery before </head> ? #243

Closed
iamseangrant opened this issue Feb 24, 2015 · 1 comment
Closed

Enqueue jQuery before </head> ? #243

iamseangrant opened this issue Feb 24, 2015 · 1 comment

Comments

@iamseangrant
Copy link

I recently came across an issue with loading jQuery in the footer and some plugins expecting jQuery to load in the header.

I saw that this was addressed in Issue #24 but then in the latest cleanup ( PR #240 ) it got switched back to the footer.

Was there a reason for this switch back?

I've changed my copy, but want to know if I'll need to keep an eye on it, or make a filter to switch it automagically.

Thanks!

@olefredrik
Copy link
Owner

You know what? You're right. My initial thought was to load jQuery in footer to reduce load and optimize performance. But as you say, there are several plugins that for some strange reason requires jQuery to be loaded in the header. So I have reintroduced the jQuery in header thing (loaded via Google CDN). See further details in this pull request #244

Thanks for your feedback! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants