Last modified: 2014-02-12 23:48:01 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 T45739, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43739 - Flash of unstyled content (FOUC) in watchlist and log in
Flash of unstyled content (FOUC) in watchlist and log in
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
beta (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Jon
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-08 18:51 UTC by Juliusz Gonera
Modified: 2014-02-12 23:48 UTC (History)
10 users (show)

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


Attachments

Description Juliusz Gonera 2013-01-08 18:51:28 UTC
I'm seeing FOUC in watchlist and log in form.

It seems that some of the CSS is loaded after the page is loaded. I suspect it might be caused by the number of CSS/JS files we load.

We should concatenate some of them to avoid so many requests. If ResourceLoader doesn't support it, then we should do it ourselves or submit a patch.
Comment 1 Jon 2013-01-09 15:55:27 UTC
I'm also seeing this on the Special:MobileOptions page
Comment 2 Sam Reed (reedy) 2013-01-09 18:23:39 UTC
IIRC the fix is to have it loaded in head by the resource loader, rather than it being potentially loaded later causing the page to update itself.

In normal RL land, you just need to add 'position' => 'top' to the $wgResourceModules entry...
Comment 3 Jon 2013-01-09 18:29:47 UTC
The mobile.watchlist module does define itself as having position top but for some reason this is not kicking in. Yet MFE's implementation of RL is still not complete.

Also it should probably be broken into two modules since javascript should be loaded at the bottom.
Comment 4 Juliusz Gonera 2013-01-09 18:55:30 UTC
Please note that the problem is not watchlist-specific. It happens at least in the login page too.

In my opinion the way that CSS is loaded by the ResourceLoader is wrong. The way it works is: first core JavaScript code (including RL) is loaded and then this JS code dynamically adds <link> (CSS) and <script> (JS) tags. This will always cause some additional delay in loading CSS, not to mention the number of requests it generates!
Comment 5 Jon 2013-01-15 00:52:56 UTC
https://gerrit.wikimedia.org/r/43979
Comment 6 Arthur Richards 2013-01-16 17:42:53 UTC
Changeset merged to master

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


Navigation
Links