Implements content loading cancellation. Fixes #13200