Last modified: 2014-02-12 23:45:59 UTC
Currently javascript lives at the bottom of the mobile page. This means on large pages on a slow internet connection the javascript for toggling sections will load at the end. On very slow connections this can have the result of sections being collapsed whilst the user is reading an article. To improve these we should consider loading javascript earlier, closing sections as they are loaded in the page with inline javascript and reducing the page size (see suggested enhancement bug 31011)
I went with this fix - https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/MobileFrontend.git;a=commit;h=2bc935f081082fe37c2bce1002a21fe5966a431f This closes sections and grays them out until the page has fully loaded. This avoids unexpected collapsing A follow up commit is needed to prevent window.scrollTo happening in application.js - it should happen in the head instead as this is causing a jumping to the top of the page Long term we need to reduce the initial page load by doing something like bug 31011
Closing in favour of more specific bugs such as bug 31011 and bug 40196