Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Async problem Reply To: Async problem

#237972
Shikkediel
Participant

Using async doesn’t mix very well with DOMContentLoaded. I think easiest would be to listen for the window load event instead. Although in this case, I don’t think there’s a speed advantage since the script is already at the bottom of the page.