Closed Bug 112324 Opened 25 years ago Closed 25 years ago

don't initialize view headers menu item on startup of mail

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: mscott, Assigned: mscott)

Details

(Keywords: perf)

Attachments

(1 file)

Just noticed some JS in our mail 3-pane on load handler which is trying to set the checkbox in the View / Headers menu popup. We shouldn't try to set the checkbox until we actually show the menu. Small performance win.
accepting.
Status: NEW → ASSIGNED
Keywords: nsbeta1, perf
Target Milestone: --- → mozilla0.9.7
Attached patch the fix — — Splinter Review
Not only does this make a *small* performance improvement for starting up the 3-pane but it also makes this menu item have the correct initial state when you bring it up. Before it was always showing "Normal".
Comment on attachment 59474 [details] [diff] [review] the fix I got a rs=sspitzer on this
Attachment #59474 - Flags: superreview+
r=bienvenu to boot. fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
OS: Windows 2000 → All
QA Contact: esther → stephend
Hardware: PC → All
http://www.mozilla.org/mailnews/win_performance_results.html Message display speed is within the threshold of the 'human reaction time' to a stopwatch (which, I'm told, it +/- 20 milliseconds). 11-27 build: 5.16 (5.23 5.11 5.13) 11-30 build: 5.23 (5.38 5.16 5.14) It's within the normal range, but other than using Quantify (which I can't operate optimally yet), I can't notice a huge speed difference. But, Verified FIXED, especially since I know enough JS to see that the code uses a clean case/switch routine to get the value of the user's header pref, and rather than using an onLoad() function, he persists the value.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: