Wikia/app — pull request #5320 by lizlux (2014-11-12 18:54:09+00:00)
Title: VID-2130 Fixing gallery loading race condition

Galleries weren't always loading b/c the ```wikipage.content``` event wasn't waiting for the DOM to be ready. I had only ported over one line from MW1.23.6 and had missed the part where it waited for the onload event.