JavaScript file building method and device

A construction method and file technology, which is applied in the field of JavaScript file construction, can solve problems such as obvious impact, impact on user experience, and reduced operating efficiency of front-end files and back-end files, so as to avoid performance damage and reduce file size.
CN106547527AActive Publication Date: 2017-03-29ADVANCED NEW TECH CO LTD

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Applications(China)
Current Assignee / Owner
ADVANCED NEW TECH CO LTD
Publication Date
2017-03-29

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a JavaScript file building method and device. The JavaScript file building method comprises the steps of: acquiring files to be processed; determining a dependence chain of the files to be processed according to dependence keywords in codes of the files to be processed; performing code conversion on each file included in the dependence chain respectively; combining all segments of codes obtained by the conversion according to the sequence of the dependence chain in such a way that the code conversion result of the independent file is located ahead of the code conversion result of the dependent file, thus obtaining built files. By adopting the technical solution, performance damage to the built files with the use of a loader can be avoided, and the volume of the built files can also be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the technical field of computer applications, and in particular to a JavaScript file construction method and device. Background technique

[0002] JavaScript is a literal scripting language that is currently widely used in web application development. Early JavaScript did not support modular programming. With the increasing complexity of Web application functions, modular programming has become an urgent need, and many solutions that can achieve modular effects in the existing JavaScript environment have also emerged.

[0003] If the script file written by the developer on the backend needs to be referenced by the page as a front-end file, then before the page goes online, the corresponding front-end version needs to be built based on the back-end version of the file so that the file can run correctly on the front-end . In the existing modular development scheme, if a backend file depends on other modules, then the ...

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