Method and system for optimizing front-end script splitting and deconstruction

An optimization method and scripting technology, applied in the field of communication, to achieve the effect of solving the loading bottleneck and reducing the volume

Pending Publication Date: 2018-12-21
福建星瑞格软件有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] One of the technical problems to be solved by the present invention is to provide a front-end script splitting and deconstruction optimization method, which is a s

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 system for optimizing front-end script splitting and deconstruction
  • Method and system for optimizing front-end script splitting and deconstruction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the present invention more comprehensible, a preferred embodiment is now described in detail with accompanying drawings as follows.

[0032] Such as figure 1 As shown, a front-end script splitting and deconstruction optimization method of the present invention includes:

[0033] 1. For the problem of too large business resource scripts: separate the general framework code from the business resource scripts, and let all business resource scripts use the split framework codes uniformly, specifically:

[0034] Create a Javascript front-end project project, write the business code and framework code in the front-end project project (introduce the framework code in the entry file of the front-end project project), complete the coding of the business logic, and then use the engineering tool to write the framework code Package with the business code to generate a business resource script. In the process of building the code into a business resource script, ex...

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 provides a front-end script splitting and deconstructing optimization method, which comprises the following steps: the universal frame code is separated from the service resource scriptseparately, so that all the service resource scripts uniformly use the splitted frame code; the front-end script splitting and deconstructing optimization method comprises the following steps: The business resource script is deconstructed, and each sub-business code is split into independent script files. When the user enters a specific business, the corresponding script file is requested and thecorresponding sub-business code is executed. The invention also provides a front-end script splitting and deconstructing optimization system, which is a front-end engineering optimization scheme aiming at the problems that the volume of the Javascript service resource script is too large and the service resource script loading bottleneck.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a front-end script splitting and deconstruction optimization method and system. Background technique [0002] When packaging the front-end Javascript (a literal translation scripting language, a dynamically typed, weakly typed, prototype-based language with built-in support types) code, the framework code and business code are usually packaged into business resource scripts and stored in In the same resource file, each packaged business resource script will contain a framework code, so when packaging a multi-page application with complex business, the repeated framework code in multiple businesses will increase the size of the resource file, resulting in Repeated framework code needs to be downloaded every time a resource file is requested. On the other hand, a business code usually contains multiple sub-business codes, and as the business continues to expand, more and mo...

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): G06F8/41
CPCG06F8/443
Inventor 刘丹
Owner 福建星瑞格软件有限公司
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