Method and device for loading static resource

A static resource, load order technology

Inactive Publication Date: 2018-12-04
QILIN HESHENG NETWORK TECH INC
View PDF9 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the user obtains the static resources of the visited webpage from the server every time when browsing the webpage, in the case of a poor network, the loading of the webpage will be very slow, increasing the white screen time of the mobile terminal
Especially when the mobile terminal is connected to a non

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
  • Method and device for loading static resource
  • Method and device for loading static resource
  • Method and device for loading static resource

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the The described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0028] The idea of ​​the embodiment of the present application is to utilize the storage feature of the local storage (Localstorage) of the browser on the mobile terminal to store the static resources on the browser web page in the local data of the browser. In this way, when the user opens the For a certain webpage, th...

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

Embodiments of the application provide a method and a device for loading static resources. The method includes: obtaining a static resource table corresponding to a target web page of a browser in response to a user's access request to the target web page of a browser; the static resource table storing related information of the static resources which the target web page needs to load; searching the static resources corresponding to the static resource table in local data of the browser according to the related information; if the static resources that are not found exist, obtaining the staticresources that are not found from a server; loading the obtained static resources according to a loading sequence of the static resources in the static resource table. In the method, influence of network states on static resource loading is reduced, loading speed of the static resources is improved under the condition that a network is poor or network delay is large, loading speed of web pages isimproved, white screen time is reduced, and experience feeling of users is improved, and traffic that users consume to access the web pages is reduced.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a static resource loading method and device. Background technique [0002] With the rapid development of information technology, users can obtain more and more information by browsing webpages, and the content displayed to users by webpages is also becoming more and more abundant. Therefore, more and more static resources are contained in current webpages. For example, the static resource may be a scripting language (JavaScript, JS) file, a cascading style sheet (Cascading StyleSheets, CSS) file, and the like. [0003] Generally, when browsing a webpage, a user needs to send a request to a server to obtain corresponding webpage content from the server. Moreover, the content returned by the server to the user includes static resources and dynamic resources. If the user obtains the static resources of the visited webpage from the server every time when browsing the we...

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
IPC IPC(8): G06F17/30
Inventor 苏思洋李涛
Owner QILIN HESHENG NETWORK TECH INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products