摘要 |
A webpage text parsing method and device, and a mobile terminal. The method comprises: after acquiring by parsing that a webpage element is a common javascript script (S210), loading the common javascript script (S220), constructing a DOM tree node corresponding to the common javascript script (S230), executing the common javascript script after completing loading of the common javascript script (S240), and parsing a next webpage element after completing the construction of the DOM tree node corresponding to the common javascript script (S250). During the loading and execution of the common javascript script, the construction of the DOM tree node corresponding to the common javascript script and the parsing of the next webpage element are continued, and the webpage text processing speed is increased. Therefore, the parsing, loading and rendering display time of the whole webpage is reduced, and the rendering display of elements following the common javascript script element is carried out in advance. |