Closed
Bug 91231
Opened 24 years ago
Closed 23 years ago
nsCharsetMenu should not be initialized on startup
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
mozilla1.0
People
(Reporter: dbaron, Assigned: jag+mozilla)
References
Details
(Keywords: perf)
Attachments
(2 files)
|
1.37 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.57 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•24 years ago
|
||
| Assignee | ||
Comment 2•24 years ago
|
||
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
| Assignee | ||
Comment 3•24 years ago
|
||
| Reporter | ||
Comment 4•24 years ago
|
||
I prefer the first solution (for reusability of code, at least).
| Reporter | ||
Comment 5•24 years ago
|
||
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).
| Assignee | ||
Comment 6•24 years ago
|
||
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?
| Assignee | ||
Comment 8•24 years ago
|
||
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.
| Assignee | ||
Comment 9•23 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•