 off the requests.
    img_1.loading = 'eager';
    img_2.removeAttribute('loading'); // unset the attribute, putting it in
                                      // the default (eager) state.
  }));

</script>

<body>
  <div style="height:1000vh;"></div>
  <img id="img_1"
       src="resources/image.png?lazy-to-eager-1"
       loading="lazy" onload="img_1_onload();">
  <img id="img_2"
       src="resources/image.png?lazy-to-eager-2"
       loading="lazy" onload="img_2_onload();">
</body>
