Last modified: 2014-02-12 23:45:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38633, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36633 - Improve JS loading and execution for slow connections on MobileFrontend
Improve JS loading and execution for slow connections on MobileFrontend
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-08 09:52 UTC by Jon
Modified: 2014-02-12 23:45 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jon 2012-05-08 09:52:33 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)
Comment 1 Jon 2012-05-08 23:44:44 UTC
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
Comment 2 Jon 2012-09-18 05:32:05 UTC
Closing in favour of more specific bugs such as bug 31011 and bug 40196

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links