Hey friends... it appears that when you hide a video element and show it again a bit later it reloads the data... how to make persistent?
-
-
Replying to @MylesBorins
Hey
@slightlylate is there a way to cache and reuse video assets? It is really resource hungry to turn "Display: none;" on and off.1 reply 0 retweets 0 likes -
-
Replying to @slightlylate
Chrome is refetching the video asset after toggling display none. Creating lots of elements, hiding them, showing one by one
1 reply 0 retweets 1 like -
Replying to @MylesBorins @slightlylate
there is a large fetch when the app starts but the assets are fetched again each time an element toggles off `display: none;`
1 reply 0 retweets 0 likes -
Replying to @MylesBorins
: display none will tear down the whole render tree. Is it losing track position too?
1 reply 0 retweets 0 likes -
Replying to @slightlylate
we tried 'visibility: hidden;' with similar results for the fetch. All tracks are starting over so unsure about position.
3 replies 0 retweets 0 likes -
Replying to @MylesBorins
: ok, starting over means all internal state is lost. I'm not sure if this is WAI.
@ElliottZ might know1 reply 0 retweets 0 likes -
Replying to @slightlylate @MylesBorins
display: none doesn't impact the video player, checked code and tests. Are you using flash video?
1 reply 0 retweets 0 likes -
: in a <video> element, right?
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.