Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay JS parsing until Document Ready #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkoistinen
Copy link

@mkoistinen mkoistinen commented Mar 25, 2017

Best practice advises loading jQuery and other JS libraries at the end of a page’s HTML. To allow for correct operation in projects loading jQuery at the foot of the document, this PR wraps the inline <script> tag contents in a browser-compatible DOM Ready event handler lifted from here: https://gist.github.com/dciccale/4087856.

This improves upon #72 by being more cross-browser compatible.

Best practice advises loading jQuery and other libraries at the end of a page’s HTML. To allow for correct operation in projects loading jQuery at the foot of the document, this PR wraps the inline <script> tag contents in a browser-compatible DOM Ready event handler lifted from here: https://gist.github.com/dciccale/4087856.
@mkoistinen
Copy link
Author

Is this package dead?

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

Successfully merging this pull request may close these issues.

1 participant