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

Replace window.onload with $(document).ready() #151

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

Conversation

pdclark
Copy link

@pdclark pdclark commented Sep 12, 2021

The window onload event waits until all images in the document finish loading.
This causes there to be a long wait time between when accordions display and when accordions are functions.
DOMReady is a more appropriate event — this fires when the page HTML and JavaScripted is parsed and ready for manipulation.
This change causes accordions to be functional immediately.

The window onload event waits until all images in the document finish loading.
This causes there to be a long wait time between when accordions display and when accordions are functions.
DOMReady is a more appropriate event — this fires when the page HTML and JavaScripted is parsed and ready for manipulation.
This change causes accordions to be functional immediately.
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