mediaembed.js 440 B

123456789101112131415161718
  1. function lazyload(anchor) {
  2. setTimeout(function () {
  3. // Strip comment tags around innerHTML
  4. anchor.innerHTML = anchor.innerHTML.replace('<!--', '').replace('-->', '');
  5. }, 1000);
  6. // Remove <noscript> tag in element DOM
  7. var elem = anchor.getElementsByTagName('noscript');
  8. if ( elem.length > 0 ) {
  9. elem[0].remove();
  10. }
  11. // Suppress further onClick events
  12. anchor.removeAttribute('href');
  13. anchor.onclick = null;
  14. return false;
  15. }