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

$(document).foundation seemingly called too soon #50

Closed
nicmendoza opened this issue May 23, 2014 · 3 comments
Closed

$(document).foundation seemingly called too soon #50

nicmendoza opened this issue May 23, 2014 · 3 comments

Comments

@nicmendoza
Copy link

I was wondering why none of the foundation js was working, turned out the call to $.fn.foundation was happening before most of the dom elements were in place. Wrapping it in a document.ready fixed the issue. I'd be happy to make the change and issue a pull request if you'd like.

@jazbek
Copy link

jazbek commented Jun 10, 2014

This shouldn't be an issue, since the script is included in the footer. The only markup I can see that follows the script is the admin bar (if you're logged in). If you're not logged in, it's the last thing before </body>. Are you enqueueing app.js earlier?

@timoburmeister
Copy link

check out my relating issue #43

@olefredrik
Copy link
Owner

Thanks! Fixed f9987ce

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

4 participants