Accordion-Blocks icon indicating copy to clipboard operation
Accordion-Blocks copied to clipboard

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

Open pdclark opened this issue 3 years ago • 0 comments

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.

pdclark avatar Sep 12 '21 20:09 pdclark