Closed Bug 1363864 Opened 4 years ago Closed 3 years ago
Before Initial XULLayout event
59 bytes, text/x-review-board-request
In bug 1347798 we're adding a small per-document JS code that enables DOM localization using the new API. At the moment, we only translate the document on window.onready, but it may be better to do this before layout.
Could we call the events something like Before/AfterInitialLayout
Maybe even Before/AfterInitialXULLayout
Sure! I'm not even yet at the stage where I'd know if I need it. Just wanted to dump my patches into bugzilla. If I'll get it on track to land I'll rename. Thanks :)
Summary: Add MozBeforeLayout event → Add MozBeforeInitialXULLayout event
Attachment #8866504 - Attachment is obsolete: true
While profiling Preferences with Fluent we noticed that the localization is applied way too late, which brought me back to this event. With this event we can trigger DOM localization right before layout is started which prevents FOUCs.  https://searchfox.org/mozilla-central/rev/c8e791091973825680bbba807fc1c4f5bda0f5a1/intl/l10n/l10n.js#17
Comment on attachment 8937210 [details] Bug 1363864 - Add MozBeforeInitialXULLayout event. https://reviewboard.mozilla.org/r/207930/#review213902
Attachment #8937210 - Flags: review?(bugs) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/16471f5143c7 Add MozBeforeInitialXULLayout event. r=smaug
You need to log in before you can comment on or make changes to this bug.