<div class="video-container">
    <video
        {{ if .autoplay }}autoplay muted{{ end }}
        {{ if .loop }}loop{{ end }}
        {{ if .poster }}poster="{{ .poster }}"{{ end }}
        preload="none"
        data-src="{{ .videoPath }}"
        data-type="{{ default "video/mp4" .videoType }}">
    </video>
    <script>
        const container = document.currentScript.parentNode;
        const video = container.querySelector("video");

        // Lazy load implementation
        document.addEventListene