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

Method and device for loading JavaScript file as required by domestic CPU

A domestic and file-based technology, applied in the direction of program control device, program loading/starting, software simulation/interpretation/simulation, etc., can solve the problems of compressed files, inconvenient use, cumbersome, etc., achieve fast loading, timely operation response, and reduce page size The effect of the number of requests

Pending Publication Date: 2022-05-27
INSPUR QILU SOFTWARE IND
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Although these can play a certain role, it is too cumbersome to use a variety of technologies, and the extreme compression of files may cause inconvenience to our use. It is very troublesome to modify the code and decompress it, and then compress it back.

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 JavaScript file as required by domestic CPU
  • Method and device for loading JavaScript file as required by domestic CPU
  • Method and device for loading JavaScript file as required by domestic CPU

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to specific embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0039] A preferred embodiment is given below:

[0040] like figure 1 As shown, a method for loading a JavaScript file on demand by a domestic CPU in this embodiment firstly creates a blank HTML5 page, and specifies that only the js file needed to be displayed on the first screen is used, and the js file required for clicking login is not included;

[0041] According to loadJsFile, the js file required for first screen loading is passed in in the form of an array, ca...

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 relates to the technical field of construction of web sites, in particular to a method for loading JavaScript files as required by a domestic CPU (central processing unit), which comprises the following steps of: firstly, creating a blank HTML5 page, and specifying js files which are only required to be displayed by a first screen and do not contain js files which are required by click login; the method comprises the following steps of: introducing a js file required by first screen loading in an array form according to loadJsFile, calculating a js file feature vector, analyzing each function of the js file, converting a basic unit of a control flow diagram into a vector with a fixed length, extracting a vector with a fixed length as a minimum unit which is equivalent to an element, segmenting the js file into a plurality of elements, the js file is composed of a plurality of elements. Compared with the prior art, the method has the advantages that the unneeded files are not loaded, the needed files are only loaded when needed, repeated loading is avoided, and rapidness is achieved.

Description

technical field [0001] The invention relates to the technical field of building web sites, and in particular provides a method and a device for loading JavaScript files on demand by a domestic CPU. Background technique [0002] With the country's strong support for Xinchuang, the industry has developed rapidly. A number of excellent Xinchuang software and hardware products have emerged in China, which can already meet daily use. More and more Web application software systems based on Xinchuang software and hardware are used in many industries. Put into use. [0003] At present, the loading mode of JS files is blocking loading, that is, the next JS file can be loaded only after the current JS file is completely loaded. Displaying pages in front of users consumes a lot of time. [0004] However, in terms of front-end performance optimization, it has always been traditional optimization, such as: resource merging and compression, the principle of image encoding, and the selec...

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): G06F9/445G06F9/455G06F16/957
CPCG06F16/9574G06F9/45529G06F9/44521Y02D10/00
Inventor 苏亚男李杨王莹
Owner INSPUR QILU SOFTWARE IND