Front end module loader for partial renewal of package file

A front-end module and module loading technology, applied in the network field, can solve the problem of unresolved reloading of all packaged files, and achieve the effect of optimizing performance and traffic

Active Publication Date: 2016-04-20
YONYOU NETWORK TECH CO LTD
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the problem of reloading all packaged files brought about by the script file update has not been resolved.

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
  • Front end module loader for partial renewal of package file
  • Front end module loader for partial renewal of package file
  • Front end module loader for partial renewal of package file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] All features disclosed in this specification, or steps in all methods or processes disclosed, may be combined in any manner, except for mutually exclusive features and / or steps.

[0039] Any feature disclosed in this specification (including any appended claims, abstract and drawings), unless expressly stated otherwise, may be replaced by alternative features which are equivalent or serve a similar purpose. That is, unless expressly stated otherwise, each feature is one example only of a series of equivalent or similar features.

[0040] In one embodiment, the popular requireJavaScript r.JavaScript synthesizes all script files into one script through the command line, and only needs to load one JavaScript when the front-end browser loads. For a website with a large amount of JavaScript, a large part of JavaScript may not be updated frequently.

[0041] Therefore, this patent proposes a solution for differentiated loading, adopting the current solution for most JavaScri...

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 a front end module loader for partial renewal of a package file. The module loader comprises a static loader and a dynamic loader. The dynamic loader is composed of a front end loader and a back buffer computing element Dynamic Js Servlet. The dynamic loader is used for loading a dynamic JavaScript. The dynamic JavaScript is a JavaScript with high renewal frequency. The static loader is used for loading a static JavaScript, and the static JavaScript is the JavaScript which does not renew regularly. The partial renewal of a package script is achieved indirectly through the combination of the static loading and the dynamic loading. According to the front end module loader, the browser caching can be utilized fully, and the front end module loader can adapt to the frequent change of a website and achieve the purpose of optimizing website performance and flow.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a front-end modular loader for partial update of packaged files. Background technique [0002] With the rapid development of the Internet, front-end development has become more and more important and complex. The traditional front-end script development method will bring problems such as naming conflicts and file loading order dependencies. Most websites have introduced modular solutions. At present, the more popular solutions are AMD (AsynchronousModuleDefinition), CMD (CommonModuleDefinition), and the representative tools are requirejs and seaJavaScript respectively. [0003] In traditional websites, in order to solve the problem of too many front-end JavaScript script requests, multiple js files are usually merged into one file, and the file is processed by removing blank characters and shortening variable names, which will make the requested The number and volume are reduc...

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 Applications(China)
IPC IPC(8): G06F17/30G06F9/445
CPCG06F9/44521G06F16/957
Inventor 李传忠田孝启
Owner YONYOU NETWORK TECH CO LTD
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