fune/dom/tests
Mark Striemer 314d144c3a Bug 1899882 - Invoke elementCreationCallback if there are elements to upgrade r=smaug
Co-author/investigator: Tim Giles <tgiles@mozilla.com>

When using SetElementCreationCallback with ESM based custom elements we
are seeing a performance regression vs when we previously required
manually adding a <script type="module"> for the import to the page.

To work around this issue we can delay registering the callback until
the DOMContentLoaded event which improves performance, presumably due to
reduced thrashing from HTML parsing to JS parsing.

With that change however any components that were encountered before the
DOMContentLoaded event will not be loaded or upgraded until the next
time a component of that type is created.

This patch updates the SetElementCreationCallback function to
immediately invoke the callback if there are candidate elements of that
type to upgrade.

Differential Revision: https://phabricator.services.mozilla.com/D212190
2024-06-04 23:18:01 +00:00
..
browser Bug 1711622 - Update tests r=necko-reviewers,devtools-reviewers,kershaw 2024-05-20 15:35:29 +00:00
mochitest Bug 1899882 - Invoke elementCreationCallback if there are elements to upgrade r=smaug 2024-06-04 23:18:01 +00:00
reftest Bug 1204553 - xml:space="preserve" isn’t respected in the no-style-information "document tree" presentation of an XML document. r=hsivonen 2024-03-27 15:03:51 +00:00
unit Bug 1881800 - chrome/system-privileged XHR should not use credentials, r=peterv,extension-reviewers,application-update-reviewers,decoder,mossop,robwu,releng-reviewers,bytesized,jcristau 2024-03-26 16:50:45 +00:00
moz.build