The preload scanner tokenizes ahead, but its speculative fetches must not be wrong. For the markup below it sees <img src> physically before the inline <script> that would change behavior. Why is fetching hero.jpg eagerly still considered safe here, unlike a document.write of a <base>?
<img src="hero.jpg">
<script>/* mutates later DOM, no document.write of base */</script>