               if (!video.src && video.dataset.src) {
                                video.src = video.dataset.src;
                                const sourceElement = document.createElement("source");
                                sourceElement.src = video.dataset.src;
                                sourceElement.type = video.dataset.type;
                                video.appendChild(sourceElement);
                            }

                            observer.unobserve(entry.target);
    