// vimeo iframe
const iframe = document.querySelector("iframe[src*='https://player.vimeo.com/']");
// get original iframe parent node
const parent = iframe.parentNode;
// remove iframe
iframe.parentNode.removeChild(iframe);
// wait few miliseconds
setTimeout(function () {
// add iframe to parent
parent.appendChild(iframe);
}, 50);
Editor is loading...