document.addEventListener("DOMContentLoaded", () => { const vids = ["card-video-01", "card-video-02"]; vids.forEach(id => { const v = document.getElementById(id); if (v) { v.setAttribute("preload", "none"); // vagy "metadata" } }); });