Closed Bug 91231 Opened 24 years ago Closed 23 years ago

nsCharsetMenu should not be initialized on startup

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 64146
mozilla1.0

People

(Reporter: dbaron, Assigned: jag+mozilla)

References

Details

(Keywords: perf)

Attachments

(2 files)

nsCharsetMenu should not be initialized on startup -- it is slow to initialize (bug 64146). At least one thing that would do so is charsetOverlay.js, for which jag is writing a patch right now.
This moves loading of the service to the onload of only mail windows. Another possible rewrite would be to just get and store the service in the "mail" portion of the check at the end of charsetOverlay.js.
Status: NEW → ASSIGNED
I prefer the first solution (for reusability of code, at least).
Oops, we both missed the use a little higher up in the file. This should really be in the menu's oncreate anyway (or so jag says).
Bah, so that code modifies (or seems to modify) the rdf back-end from which the menu is built, so we can't move it to oncreate, which is run after the menu is built. I'm now pondering rewriting those menus to use js to build themselves and drop the rdf back-end, but that's going to be quite a bit of work. Is it worth it? Or, does anyone have other suggestions?
->1.0
Target Milestone: --- → mozilla1.0
Hmmm, to answer my own question, I guess that in the case where we modify we could actually force a rebuild of the menu, but I don't remember all the details. Let me look at this more closely later today.
Dupe of bug 64146. *** This bug has been marked as a duplicate of 64146 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified as dup.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: