Last modified: 2014-09-01 16:23:45 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 T27510, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25510 - "Navigation" in sidebar is visible for a moment before disappearing (FOUC)
"Navigation" in sidebar is visible for a moment before disappearing (FOUC)
Status: RESOLVED WORKSFORME
Product: MediaWiki skins
Classification: Unclassified
Vector (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
: performance, testme
: 53940 60153 (view as bug list)
Depends on: 27488
Blocks: 44881
  Show dependency treegraph
 
Reported: 2010-10-13 06:30 UTC by Yair Rand
Modified: 2014-09-01 16:23 UTC (History)
14 users (show)

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


Attachments

Description Yair Rand 2010-10-13 06:30:54 UTC
The first h5 tag in the sidebar of the Vector skin (containing the word "Navigation" on most English wikis), immediately under the logo, is visible for a moment before disappearing once the page is fully loaded (except on certain wikis such as Bugzilla where it does not disappear at all).
Comment 1 Trevor Parscal 2010-10-13 06:33:36 UTC
This is caused by ResourceLoader loading the vector extension later in the page loading process than it used it (scripts are now at the bottom). There are some possible tricks to getting around this - of which I am going to be working on soon. Any ideas are welcome. My goal is to fix this cleverly, not just abandon putting scripts at the bottom.
Comment 2 Mark A. Hershberger 2011-04-01 20:41:09 UTC
still there today.  Any action on this, Trevor?
Comment 3 Trevor Parscal 2011-04-01 20:53:48 UTC
It's been proposed in bug #27488 that we move the scripts to the head, and that would fix this. Until then, I have not yet come up with a solution in the limited time I've spent working on this problem.
Comment 4 Krinkle 2011-06-04 16:45:14 UTC
Moving to the Vector-extension. 

The core skin has no hiding functionality, this is part of the javascript enhancement enabled in the extension.
Comment 5 Krinkle 2011-06-06 16:58:06 UTC
(In reply to comment #3)
> It's been proposed in bug #27488 that we move the scripts to the head, and that
> would fix this. Until then, I have not yet come up with a solution in the
> limited time I've spent working on this problem.

This is now possible by chopping that part into a seperate module that has position=>top (and a wrap in $(document).ready if needed).
Any gotcha that you know of that keeps us from doing that ?
Comment 6 Roan Kattouw 2011-06-06 17:12:42 UTC
(In reply to comment #5)
> This is now possible by chopping that part into a seperate module that has
> position=>top (and a wrap in $(document).ready if needed).
> Any gotcha that you know of that keeps us from doing that ?
It seems to me that all of CollapsibleNav can probably be moved to the top, since its purpose (collapsing nav stuff) is something that shouldn't be delayed for too long.
Comment 7 Bugmeister Bot 2011-08-19 19:12:54 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 8 Yair Rand 2012-11-28 13:31:46 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > It's been proposed in bug #27488 that we move the scripts to the head, and that
> > would fix this. Until then, I have not yet come up with a solution in the
> > limited time I've spent working on this problem.
> 
> This is now possible by chopping that part into a seperate module that has
> position=>top (and a wrap in $(document).ready if needed).
> Any gotcha that you know of that keeps us from doing that ?
Wouldn't wrapping it in $(document).ready ruin the point? If it doesn't run until the DOM is entirely ready, there's going to be some time where things aren't displayed correctly.
Comment 9 Bartosz Dziewoński 2013-09-14 10:48:12 UTC
*** Bug 53940 has been marked as a duplicate of this bug. ***
Comment 10 Mayank Madan 2013-11-19 07:07:28 UTC
There is a h2 heading "Navigation" if looked in the elements of web page but currently the word is not flashing. (Not appearing at all)
Comment 11 This, that and the other (TTO) 2013-11-22 10:40:32 UTC
(In reply to comment #10)
> There is a h2 heading "Navigation" if looked in the elements of web page but
> currently the word is not flashing. (Not appearing at all)

I think your browser/Internet connection might be too fast; I (with all my gadgets and scripts causing a fairly bloated page load) still see this bug. "Navigation" appears when the page is first loaded, but only disappears once scripts are run.
Comment 12 MZMcBride 2013-12-02 07:45:11 UTC
There are at least a few possible paths forward here:

* stop hiding "navigation" in the sidebar

* remove sidebar section collapsing

* implement a CSS-based approach (<https://gerrit.wikimedia.org/r/84290>)

* use "top" (bug 27488)
Comment 13 Bartosz Dziewoński 2014-01-16 22:51:48 UTC
*** Bug 60153 has been marked as a duplicate of this bug. ***
Comment 14 Nemo 2014-05-17 08:37:49 UTC
Can't reproduce, but I've not tried slowing down loading.

(In reply to MZMcBride from comment #12)
> There are at least a few possible paths forward here: [...]
> 
> * remove sidebar section collapsing

That was done (bug 39035), does that supersede this bug?

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


Navigation
Links