Closed Bug 689899 Opened 13 years ago Closed 13 years ago

fix flickering of warning box on start page

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2011-10-18

People

(Reporter: atopal, Assigned: rrosario)

Details

The warning box on the start page shows all content first and then hides it. That is rather confusing and on slow machines/connections people have time to read the full warning before it goes away.

Please insert that box after the page is loaded, and only show the appropriate showfor content instead of hiding it after loading it.
I don't believe we want to add ajax here. We need to figure out how to have this hidden by default. It is probably tricky given that this is using {for} and it's related js for showing/hiding. We might need to add a hidden-by-default class or something like that.
Summary: ajaxify warning box on start page → fix flickering of warning box on start page
OS: Mac OS X → All
Hardware: x86 → All
Okay, then maybe deferred display: that box can be wrapped in it's own class, hidden by default and displayed after page load is complete. Would even be more effective ,if it would pop up, flash a bright color and fade to current color.
Assignee: nobody → rrosario
https://github.com/jsocol/kitsune/commit/1177f6859ef25ccebf577605a46646ae8bb53281
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: 2011Q4 → 2011-10-11
So, what solution did you go with? In the check-in it looks like the box is set to display: none. Is there accompanying JS to switch it on after the page is loaded? I'm just asking because I can still see the flicker on staging.
(In reply to Kadir Topal [:atopal] from comment #4)
> So, what solution did you go with? In the check-in it looks like the box is
> set to display: none. Is there accompanying JS to switch it on after the
> page is loaded? I'm just asking because I can still see the flicker on
> staging.

Yes, the SHOWFOR script will reset the display appropriately. If you are seeing it after clearing cache, this may not have worked then :(.
Yeah, I see it on stage. I will try something else...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 2011-10-11 → 2011-10-18
https://github.com/jsocol/kitsune/commit/770ab6d2467d79072ad4465778ed85ca1f007a0c
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Awesome, no more flickering :)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.