Accordion-Blocks
Accordion-Blocks copied to clipboard
Replace window.onload with $(document).ready()
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.