Closed Bug 1924082 Opened 4 months ago Closed 4 months ago

Add helper to lazy load custom elements

Categories

(Thunderbird :: Mail Window Front End, task)

Tracking

(thunderbird_esr128 wontfix, thunderbird133 fixed)

RESOLVED FIXED
133 Branch
Tracking Status
thunderbird_esr128 --- wontfix
thunderbird133 --- fixed

People

(Reporter: freaktechnik, Assigned: freaktechnik)

Details

Attachments

(5 files)

While we try to explicitly load custom elements whenever possible, sometimes that is just more complicated than necessary. To avoid loading elements unless they're needed in those situations I'd like to introduce a simple helper function that leverages customElements.setElementCreationCallback.

Attachment #9430434 - Attachment description: Bug 1924082 - Use setElementCreationCallback to lazily load custom elements. r=#thunderbird-front-end-reviewers → Bug 1924082 - Use defineLazyCustomElement to lazily load custom elements. r=#thunderbird-front-end-reviewers
Target Milestone: --- → 133 Branch

Pushed by toby@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/dfcf6100aa2b
Create defineLazyCustomElement helper. r=arschmitz,vineet,aleca
https://hg.mozilla.org/comm-central/rev/611c4166a08e
Lazily load older custom elements. r=vineet
https://hg.mozilla.org/comm-central/rev/3edc65080fa7
Use defineLazyCustomElement to lazily load custom elements. r=vineet,arschmitz
https://hg.mozilla.org/comm-central/rev/4c52aab6a383
Add documentation for loading custom elements. r=heather,arschmitz
https://hg.mozilla.org/comm-central/rev/16aaf1a59075
Test customElements.js element loading. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: