Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for loading static resources

A static resource and consistent technology, applied in the field of data processing, can solve problems such as high cost, inability to request static resources, inability of browser and server to interact, etc., to achieve the effect of reducing investment, speeding up access speed, and reducing load

Active Publication Date: 2016-09-14
XIAOMI INC
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The CDN node caching static resource solution has the following defects: multiple computer rooms need to be established, and multiple servers are set up in each computer room, which costs a lot
Moreover, once the user loses the network connection or there is a problem with the CDN node, the static resource cannot be requested
[0007] The browser caching solution requires the browser to interact with the server, and once the user loses the network connection, the browser and the server will not be able to interact

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for loading static resources
  • A method and device for loading static resources
  • A method and device for loading static resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The preferred embodiments will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the embodiments of the present invention, and are not intended to limit the embodiments of the present invention.

[0042] Such as figure 1 Shown is the main method flow of loading static resources in the embodiment of the present invention, including the following steps:

[0043] Step S101: when there is a static resource to be requested in the loaded webpage file, obtain the name and version of the static resource to be requested from the webpage file;

[0044] Step S102: judging whether there is a static resource with the same name and version as the obtained one stored locally;

[0045] Step S103: When there is a static resource with the same name and version as the acquired locally, load the locally stored static resource with the same name and version as the a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a method and a device for loading a static resource. The method comprises the following steps: when the static resource required to be requested exists in a loaded web page file, acquiring the name and the edition of the static resource required to be requested from the web page file; judging whether the static resource which is consistent with the static resource in name and edition is stored locally; and loading the locally stored static resource which is consistent with the static resource in name and edition when the static resource which is consistent with the static resource in both name and edition is stored locally. In the embodiment of the invention, when the static resource which is the same with the static resource requiredto be requested is stored locally, the locally stored static resource is directly loaded without emitting any request to a server where the static resource is positioned or negotiating with the server where the static resource is positioned, so that the access speed to the website static resource is quickened, the load of the server end is also reduced, and the investment in hardware facility construction is reduced.

Description

technical field [0001] The present invention relates to the field of data processing, and more specifically, to a method and device for loading static resources. Background technique [0002] With the development of the Internet industry, the information provided by webpage content is becoming more and more abundant, and the data content displayed on the webpage is also becoming more and more abundant. At the same time, the bandwidth of Internet users in China and the huge webpage application form a special contradiction. How to present webpage content to users faster and reduce the waiting time of users has become a must for all Internet companies in the process of technology research and development. a link. The most prominent problem is that with the rich media of web applications and the closer to the interaction of local applications on the client side, more and more static resources (Static Resources), such as JS (JavaScript) files, CSS (Cascading Style Sheet, Cascad...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 任远姚丽梅
Owner XIAOMI INC