9b85b4e748
If a tile is virtualised out before its in-flight thumbnail finishes, the load event still fires on the detached <img>. Without a guard that callback would add the index to state.stickyTiles, potentially pinning a later replacement tile whose own <img> has not painted yet. Only register the index while this <a> is still the live tile for it (state.renderedTiles.get(index) === a). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>