(function(){
  document.addEventListener('DOMContentLoaded',function(){
    document.querySelectorAll('img:not([loading])').forEach(function(img,i){img.loading=i<2?'eager':'lazy';img.decoding='async';});
    document.querySelectorAll('iframe:not([loading])').forEach(function(frame){frame.loading='lazy';});
  });
})();
