Smarter infinite loop detection vs. web-worker-is-still-loading detection.