Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

System static resource loading method and device

A technology for static resources and loading devices, applied in the computer field, can solve the problem of low optimization degree of static resources, and achieve the effect of avoiding low optimization degree and improving optimization degree.

Active Publication Date: 2020-12-25
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a system static resource loading method and device, aiming to solve the problem that the existing static resource processing method can optimize the web static resource loading to a certain extent, but the optimization degree of the static resource is low

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
  • System static resource loading method and device
  • System static resource loading method and device
  • System static resource loading method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0063] Such as figure 2 As shown, a first embodiment of a system static resource loading method of the present invention is proposed, and the system static resource loading method includes:

[0064] Step S10, when a page access request is received, obtain pre-compiled static resource data;

[0065] In this embodiment, static resources are compiled in advance. refer to image 3 , the process of compiling static resources in advance includes:

[0066] Step S01, compiling the static resources;

[0067] Step S02, during the compilation process, create a static resource relationship table, recording the deployment path and dependency relationship of each static resource;

[0068] Step S03, after the compilation is completed, the compiled static resource data is generated.

[0069] Compile and process static resources, including preprocessing of multiple static resources, url processing (for example, adding md5 stamp), adding CDN prefix, optimization (compression, merging, etc...

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 invention discloses a loading method of system static resources. The loading method comprises the following steps: after a page access request is received, obtaining static resource data which is compiled in advance; extracting the static resources corresponding to access data from the obtained static resource data; and loading the extracted static resources to finish accessing the page data corresponding to the access request through the extracted static resources. The invention also discloses a loading system of the system static resources. By use of the loading method and device, the optimization degree of the static resources can be improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a system static resource loading method and device. Background technique [0002] As the speed of Internet development and iteration becomes faster and faster, Internet websites become larger and larger, there are a large number of static resources, and the relationship between static resources becomes intricate, which brings a lot of trouble to development engineers. Currently, the processing of static resources mainly includes: [0003] 1. SeaJS: SeaJS follows the CMD specification and is a module loader focused on web browsers, implemented in a lazy execution manner. Its disadvantages are: 1> It is very difficult to package spm, and novices need a lot of learning costs; 2> It is impossible to update and control static resources; 3> Iterative release and rollback of versions cannot be quickly realized. [0004] 2. RequireJS: RequireJS follows the AMD specification ...

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): G06F8/65G06F8/71G06F9/445
Inventor 白玉
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products