Traditionally in browsers the HTML parser ran on the main thread and was blocked after a tag until the script has been retrieved from the network and executed. Some HTML parser, such as Firefox since Firefox 4, support speculative Parsing off of the main thread. It parses ahead while scripts are being downloaded and executed. The HTML parser starts speculative loads for scripts, style sheets and images it finds ahead in the stream and runs the HTML tree construction algorithm speculatively. The upside is that when a speculation succeeds, there's no need to reparse the part of the incoming file that was already scanned for scripts, style sheets and images. The downside is that there's more work lost when the speculation fails....speculative parsing off of the main thread. It parses ahead while...by document.write() has been parsed. However, only unusual uses...