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
I recently came across the new moveBefore() API, which allows moving DOM nodes without resetting their internal state (e.g., videos keep playing, iframes don't reload).
Currently, <Teleport> seems to rely on remove/insert, which causes media to reset when the target changes.
I was wondering if it might be feasible for Vue to progressively enhance runtime-dom to use moveBefore when available? This would make features like "Picture-in-Picture" (moving a video player to a different container) seamless without needing manual DOM manipulation.
Is this something that would fit into the current renderer architecture?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I recently came across the new
moveBefore()API, which allows moving DOM nodes without resetting their internal state (e.g., videos keep playing, iframes don't reload).Reference: https://developer.chrome.com/blog/movebefore-api
Currently,
<Teleport>seems to rely on remove/insert, which causes media to reset when the target changes.I was wondering if it might be feasible for Vue to progressively enhance runtime-dom to use moveBefore when available? This would make features like "Picture-in-Picture" (moving a video player to a different container) seamless without needing manual DOM manipulation.
Is this something that would fit into the current renderer architecture?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions