We’re using Turbolinks to speed up page loads, but this is an issue we’ve found that goes all the way down to the
DOMContentLoaded event. In all our projects we always had an assumption that images would not block the
DOMContentLoaded event. We mainly use these events to know when the DOM is ready for selecting elements.
But then when we had a single page with numerous inline
Our solution was simple. Instead of listening to the load event we just send a custom event when we know all HTML is ready by adding this just before the