Abstract:
Provided are a window switching method, and device and storage medium thereof. The method comprises the steps: obtaining a first pre-reading keyword meeting the requirement in all contents on a page opened through a current window, determining a first pre-reading URL corresponding to the first pre-reading keyword, utilizing the pre-reading window to load a pre-reading page corresponding to the first pre-reading URL, and switching the pre-reading window loaded with the pre-reading page to the current window when an instruction of entering the pre-reading page is received. An improved pre-reading function can be achieved, and the technical problem of low user experience caused by the fact that contents on a pre-reading page cannot be displayed completely after switching to the pre-reading page is further solved.
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:
In accordance with various embodiments of the disclosed subject matter, a webpage resource acquisition method, and an apparatus thereof are provided. In some embodiments, the method comprises: obtaining pre-read webpage resources from a web server through a communication network according to a pre-read algorithm; storing raw data of the pre-read webpage resources in a pre-read cache; and in response to receiving a loading instruction to load a target webpage resource, obtaining the raw data of one pre-read webpage resource that corresponds to the target webpage resource from the pre-read cache based on the loading instruction without going through the communication network.
Abstract:
The present invention provides an incremental upgrade method, an apparatus applying the method and a storage medium. The incremental upgrade method comprises: sending a request to a server for downloading an incremental upgrade package corresponding to a local old version file on a terminal; receiving the incremental upgrade package, which comprises unmatched block data obtained by comparing a first compressed file with a second compressed file, and the start and end information of the unmatched block data, wherein the first compressed file is a compressed file that concatenates an old version file and a new version file on the server, and the second compressed file is a compressed file of the old version file on the server; concatenating the unmatched block data in the incremental upgrade package and a local second compressed file generated from the local old version file on the terminal to generate a concatenate compressed file; and at last decompressing the concatenate compressed file to obtain the new version file. The method reduces data traffic and occupied bandwidth resources.
Abstract:
Embodiments of the disclosure are directed to HTML5 Canvas element rendering methods implemented on an Android system based on GPU hardware. The methods may include after a rendering operation instruction for a Canvas element in an HTML5 web page is detected and an initialization operation is completed, converting an invoking instruction for a 2D Canvas drawing API into an invoking instruction for an OpenGL ES API through a Skia GPU function library; setting EGL Context created during the initialization operation as a current context of a thread where a rendering operation is located; rendering the Canvas element in an off-screen local window created during the initialization operation by using the GPU; and copying the rendered Canvas element to a current active window of a device from the off-screen local window by using a mapping operation function of the GPU. The methods, by making use of a local window rendering mechanism provided by an Android operating system and the OpenGL ES API, allow the Canvas element to be drawn and mixed by using the GPU, thereby improving the performance of Canvas rendering by using GPU hardware acceleration.
Abstract:
A method for file downloading is described. The method comprises: transmitting a first request to a server to start a downloading process of a file; receiving a first destination address and a first cookie for the downloading process, wherein the first destination address and the first cookie are associated with the file; storing the first destination address, the first cookie, a link address associated with the file, and a web address associated with the link address; detecting an interruption of the downloading process; and responsive to detection of an interruption of the downloading process, transmitting a second request to the server for a second destination address and a second cookie associated with the file based on the link address and web address. The method further comprises resuming the downloading process of the file using the second destination address and the second cookie.
Abstract:
A data caching method is disclosed. The method comprises changing, according to an instruction, a cache value, corresponding to a key, in a cache on a volatile memory, recording the instruction following a first effective content of a log file in a non-volatile memory to obtain a second effective content, the second effective content including the first effective content and the recorded instruction, and storing the key and the changed cache value corresponding to the key into the non-volatile memory.
Abstract:
Provided are a method and an apparatus for implementing communication from a web page to a client. The method includes: a browser establishing a communication connection with a port when accessing a web page, where the port is a port predefined to communicate with the web page; and sending link information carrying parameters specified by a preset communication protocol to the port, so that the client accesses a client page corresponding to the link information, where the parameters include fields in a service requirement and client page information. A client can be directly called from a web page of a portal web site, so as to guide a user to complete a required service to a designated page, thereby being convenient for the user to operate.
Abstract:
The present invention relates to the field of Web browser technology, particularly to a prereading method and system for a Web browser, the method comprising: submitting, by a Web browser client, a first Web page visiting request to a target server and uploading an individual browsing record characteristic of the first Web page; forming, by a transfer server, a prereading policy according to the received individual browsing record characteristic of the first Web page and the stored at least one swarm browsing record characteristic of the first Web page; acquiring, by the transfer server, a Web page from the target server according to the prereading policy and sending the Web page to the browser client for buffering. The present invention makes it possible to preread Web pages according to individual users' visiting habits and preferences in combination with mass users' visiting history, and find out Web pages that a user is most likely to click through computational analysis of weights and preference coefficients on different page elements of Web pages, thereby realizing more precisely prereading, significantly increasing success rate of preread. Further, pages are downloaded in idle period, which advantageously saves time for users by substantially avoiding waiting.
Abstract:
The present invention provides a precise location-based information service method and apparatus for mobile terminal browser users. The method includes: acquiring at least two types of positioning references based upon a positioning service request from a user; establishing correlation relationships among the positioning references based on the acquired positioning references; and performing integrated positioning and cross-validation on a precise location of the user based on the correlation relationships to determine final positioning service information. This invention can implement precise location-based services (LBS) and precise Point of Interest (POI) push service by analysis and extraction of the user's location information and behavioral data acquired and accumulated with the user's consent. This satisfies the needs of the mobile phone browser user for precise LBS and personalized nearby information service.