hebrerillo
Active Coder
Hello there!
I have a page with a lot of videos, so memory is a concern. Because of that, I have implemented an Intersection Observer that removes the videos that are out of the viewport. This is the instruction:
Where 'video' is an HTMLVideoElement.
Will that instruction be enough to free the memory of the video?? or do I have to do something else?
I read this thread, but it is still not clear to me if the memory of the video is completely freed.
Thank you a lot!
I have a page with a lot of videos, so memory is a concern. Because of that, I have implemented an Intersection Observer that removes the videos that are out of the viewport. This is the instruction:
JavaScript:
video.remove();
Where 'video' is an HTMLVideoElement.
Will that instruction be enough to free the memory of the video?? or do I have to do something else?
I read this thread, but it is still not clear to me if the memory of the video is completely freed.
Thank you a lot!