lundi 21 septembre 2020

Safari mp4 video memory leak

I have a lot of mp4 video elements on the page that are playing at the same time. On average, their weight is 70-110kb. If i display a lot of mp4 in a video tag, then there is a big memory leak in Safari macOS. There is no leakage in chrome, and it also cleans the video quickly.

I'm trying to clear the video, but it looks like safari is doing too badly for this task. The page may freeze for 5-10 seconds, or completely freeze.

Here's an example - http://jsfiddle.net/GhS2Z/3/ , You can try it in Chrome & Safari.

Chrome instantly removes and adds an element, while safari has a long delay >2s. And this is just 1 video, but I have more than 20 on my page. What can be the solution to the problem in Safari?




Aucun commentaire:

Enregistrer un commentaire