-
公开(公告)号:US20170315982A1
公开(公告)日:2017-11-02
申请号:US15523626
申请日:2015-08-07
Inventor: Chao ZHOU , Yongming HE , Liqiong HU
CPC classification number: G06F17/272 , G06F9/4488 , G06F16/986 , G06F17/2247 , H04M1/72561
Abstract: The present disclosure provides method, device and mobile terminal for webpage text parsing. The method includes: after a webpage element is parsed into a common JavaScript script, loading the common JavaScript script, and simultaneously constructing a DOM tree node corresponding to the common JavaScript script. The common JavaScript script is executed, after loading of the common JavaScript script is completed; and the next webpage element may then be parsed, after construction of the DOM tree node corresponding to the common JavaScript script is completed. While loading and executing the common JavaScript script, construction of the DOM tree node corresponding to the common JavaScript script and parsing of the next webpage element are still continued to accelerate webpage text processing. This reduces the time of parsing, loading, rendering, and displaying the whole webpage, and also allows the elements after the common JavaScript script element to be rendered and displayed in advance.