Preloading images so they're ready to show when needed, does not sound like unreasonable behaviour, especially on a connection with high bandwidth but low latency.
It will make this kind of example really slow, but if the intention is to break this kind of spying, then that's okay.
It will make this kind of example really slow, but if the intention is to break this kind of spying, then that's okay.