Abstract:
The invention discloses a video rendering method and a video rendering device, said method comprising registering a trigger operation of a video node after parsing it on a webpage, creating a video component corresponding to said target video node and using said video component to render said target video node only upon detection of said trigger operation oriented towards said target video node. The video rendering method disclosed by this invention can create the corresponding video component according to a user's playing demands and prevent the system resource waste arising from the system's automatic allocation of a video component to the video node on the webpage and the lack of system memory and poor user experience incurred thereby.
Abstract:
Provided are methods and apparatus for increasing subresource loading speed. A method may include receiving a page request initiated by a user, extracting the host domain name corresponding to the page URL, and querying if the hash table has a domain name tree corresponding to the host domain name; if the hash table has a domain name tree corresponding to the host domain name, traversing the domain name tree to extract a plurality of subresource domain names with the highest priority, and at the same time, establishing TCP connections for the host domain name and the plurality of subresource domain names; when the main document data of the host domain name is received, initiating a subresource loading request according to the subresource URL in the main document data; if the subresource domain name in the subresource loading request is a domain name in the above plurality of subresource domain names, directly initiating a HTTP request by using the previously established TCP connection, and completing the loading of the subresource. By establishing TCP connections for subresource domain names with high priority in advance, such methods and apparatus solve the problem that TCP connection needs to be established on site when a subresource loading is requested.
Abstract:
The present invention provides a webpage pre-reading method, apparatus and a smart terminal device. The webpage pre-reading method includes: acquiring information of one or more users accessing multiple webpages within a first period of time; determining click paths through each of which a second webpage is clicked and entered from a first webpage and the number of clicks thereof; determining a first confidence value of each click path; generating a first pre-reading list including the click paths based on the first confidence values; and querying for a click path of a currently browsed webpage from the first pre-reading list so as to pre-read data of a corresponding target webpage to be browsed.
Abstract:
A method and device for starting an external application program in a browser are provided. The method comprises: adding a standard HTML label representing a plugin into a webpage of a browser; adding an external application program plugin module corresponding to the label into the external application program; and after the browser receives an event of clicking the label, transmitting the click event to the external application program plugin module added into the external application program by invoking an interface of the external application program, the external application program plugin module of the external application program invoking an application programming interface which is provided by an operating system for starting an application program to start the external application program.