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

Run JavaScript only when DOM is ready #3989

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

mitar
Copy link
Contributor

@mitar mitar commented Mar 13, 2016

In custom themes one might want to move all JavaScript to the <head>. But currently JavaScript provided by DRF is not written in this way. This pull requests wraps it simply into a $(document).ready to assure that.

Diff is ugly because indentation changed.

@jpadilla
Copy link
Member

Looks good to me, thanks!

@jpadilla jpadilla self-assigned this Mar 16, 2016
jpadilla added a commit that referenced this pull request Mar 17, 2016
Run JavaScript only when DOM is ready
@jpadilla jpadilla merged commit 1339fba into encode:master Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants