You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task to build a legacy script for use as polyfill that hydrates shadow roots on page, without needing to import modules and call hydrateShadowRoots in user code.
We may want one or more options on how this would work:
Use MutationObserver to hydrate shadow roots as they are encountered, for better streaming support (as noted in the mutation-observer.ts implementation, this likely needs to be more sophisticated to avoid hydrating partially-parsed templates
To confirm: Does the parser actually yield in the middle of a large template? If so, may need more sophisticated logic around e.g. detecting that the next element after the <template> has opened before hydrating a given template
What is the perf impact of using MutationObserver over one-shot DOMContentLoaded?
Wait until DOMContentLoaded and upgrade all in one shot
The text was updated successfully, but these errors were encountered:
Task to build a legacy script for use as polyfill that hydrates shadow roots on page, without needing to import modules and call
hydrateShadowRoots
in user code.We may want one or more options on how this would work:
MutationObserver
to hydrate shadow roots as they are encountered, for better streaming support (as noted in themutation-observer.ts
implementation, this likely needs to be more sophisticated to avoid hydrating partially-parsed templates<template>
has opened before hydrating a given templateMutationObserver
over one-shotDOMContentLoaded
?DOMContentLoaded
and upgrade all in one shotThe text was updated successfully, but these errors were encountered: