Open
Bug 1798966
Opened 2 years ago
Defer the loading of the editable custom elements to a scriptLoader
Categories
(Thunderbird :: Address Book, task)
Thunderbird
Address Book
Tracking
(Not tracked)
NEW
People
(Reporter: aleca, Unassigned)
References
Details
We currently add all those JS files containing custom elements in the template file of the Address Book: https://searchfox.org/comm-central/rev/7cf828bdfd92fa599316265fbf599062222c473f/mail/components/addrbook/content/vcard-edit/vCardTemplates.inc.xhtml#8-22
Other than being wrong having JS files added randomly inside the DOM, we also should not load any of these unless the user needs them.
If the user never enters edit mode, there's no need to load any of those files.
We can update this thanks to the work done in bug 1798738.
You need to log in
before you can comment on or make changes to this bug.
Description
•