METHOD, DEVICE AND MOBILE TERMINAL FOR WEBPAGE TEXT PARSING

    公开(公告)号:US20170315982A1

    公开(公告)日:2017-11-02

    申请号:US15523626

    申请日:2015-08-07

    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.

Patent Agency Ranking