Last modified: 2014-02-12 23:52:50 UTC
I noticed this little gem in MobileFrontend's HTML template: <script type='text/javascript'> window.onload = function() { mw.mobileFrontend.init(); }; </script> window.onload doesn't fire until all images have been loaded; this includes images in collapsed sections for now. On long pages like the Obama article <http://en.m.wikipedia.org/wiki/Obama> it's easy to tap into the search box while things are still loading and find that nothing happens when you type -- you have to tap out and tap back in to activate the full-screen search view. Initialization should be called on DOM-ready or directly in the footer code so that it doesn't have to wait for images.
https://gerrit.wikimedia.org/r/24437
Merged.