chromium/third_party/blink/web_tests/http/tests/priorities/resources/off-screen-image.html

<script src="common.js"></script>
<script>
  const url = new URL('../../resources/square.png?offscreen', location);
  observeAndReportResourceLoadPriority(url);

  const image = new Image();
  image.src = url;

  image.onload = reportLoaded;
  image.onerror = reportFailure;
</script>