Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix for race condition between the Flickr API call and window load event #22
I've been using supersized (great plugin, btw) on an HTML5 website and noticed that certain browsers (specifically IE9 in standards mode) appear to have a race condition between the Flickr API call returning and the window load event firing.
The result was that in IE9 in standards mode you would be stuck in the "loading" phase until you clicked next/previous slide.
My fix isn't particularly pretty, but it was the smallest change I could come up with that worked properly in all the browsers I've tested (IE9, FireFox 3.6/4/5, Chrome 12/13).