1. A method for executing a markup language code in a processor, comprising: receiving in the processor a request to load a web page; receiving markup language code associated with the requested web page, the markup language code including embedded scripting language code; parsing the received markup language code to generate parse data until a segment of scripting language code is encountered; packaging the scripting language code and parsing state information in an execution state package upon encountering a segment of scripting language code; storing the execution state package in a scripting language script queue; continuing parsing the received markup language code; obtaining the segment of scripting language code from the scripting language script queue; executing the obtained segment of scripting language code concurrent with continued parsing of the markup language code; determining whether markup language code generated from execution of the obtained segment of scripting language code is well formed; when it is determined that the generated markup language code is well formed, storing the generated markup language code; and when it is determined that the generated markup language is not well formed: retrieving the parsing state stored in the execution state package; discarding parse data resulting from parsing of the markup language code after a point in the markup language code identified by the retrieved execution state package; and re-initiating parsing of the markup language code from the point in the markup language code identified by the retrieved execution state package.