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

Method and system for managing JS (JavaScript) or CSS (Cascading Style Sheet) files

A file and analysis server technology, applied in the field of network communication, can solve problems such as difficult to achieve merger results, increase in development costs, waste of system resources, etc., and achieve the effects of reducing development costs, reducing resource occupancy, and reducing waste

Inactive Publication Date: 2011-11-23
BEIJING PEOPLE HAPPY INFORMATION TECH
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, in order to optimize the performance of the web, the JavaScript and CSS files in most web pages will be combined according to the actual situation, but the existing technology does not carry out systematic statistical analysis, so it is difficult to achieve the optimal combination result
Quite a few of these merges are done manually selectively, and each new merge needs to be completed locally and uploaded to the server, which is relatively random and cumbersome, and lacks effective management; the existing technology cannot make requests for web pages The number and the traffic overhead generated by the web page are minimized, resulting in a waste of system resources; and when a file version is updated, to update a JS or CSS file version, all pages that use the JS or CSS file need to be modified. Once again, a lot of duplication of labor will bring about an increase in development costs

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 managing JS (JavaScript) or CSS (Cascading Style Sheet) files
  • Method and system for managing JS (JavaScript) or CSS (Cascading Style Sheet) files
  • Method and system for managing JS (JavaScript) or CSS (Cascading Style Sheet) files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Embodiments of the present invention: a method for managing JS or CSS files, comprising the following steps:

[0032] S1, analyzing the usage frequency of JS or CSS files by the server;

[0033] S2, the analysis server regularly updates the center configuration, and sends the update result to the web server;

[0034] S3, when the user sends a request to view the page through the client, the web server reads the central configuration;

[0035] S4, the web server controls the JS or CSS files in the page according to the central configuration.

[0036] In the step S2, the analysis server regularly updates the central configuration including:

[0037] Merge multiple JS or CSS files that appear at the same time on the same page with high probability into one JS or CSS file;

[0038] Replace JS or CSS files with the latest versions;

[0039] Delay loading of specific JS or CSS files. The above-mentioned "multiple JS or CSS files that appear at the same time with a high p...

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 method and a system for managing JS (JavaScript) or CSS (Cascading Style Sheet) files, wherein the method comprises the following steps that: S1, an analysis server counts the utilization frequency of the JS or CSS files; S2, the analysis server regularly updates a centre configuration and sends the updated result to a web server; S3, when a user sends a request of viewing a webpage via a client, the web server reads the centre configuration; and S4, the web server controls the JS or CSS files in the webpage according to the centre configuration. The method and the system disclosed by the invention can realize a management to the JS or CSS files and efficiently reduce the requests in the webpage so as to reduce the waste of system resources, as well as can control the versions of the JS or CSS files and decrease the development cost.

Description

technical field [0001] The invention relates to a method and system for managing JS or CSS files, belonging to the field of network communication. Background technique [0002] At present, in order to optimize the performance of the web, the JavaScript and CSS files in most web pages will be combined according to the actual situation, but the existing technology does not carry out systematic statistical analysis, so it is difficult to achieve the optimal combination result. Quite a few of these merges are done manually selectively, and each new merge needs to be completed locally and uploaded to the server, which is relatively random and cumbersome, and lacks effective management; the existing technology cannot make requests for web pages The number and the traffic overhead generated by the web page are minimized, resulting in a waste of system resources; and when a file version is updated, to update a JS or CSS file version, all pages that use the JS or CSS file need to be ...

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): H04L12/24H04L29/06G06F17/30
Inventor 王剑清伍星刘珊珊
Owner BEIJING PEOPLE HAPPY INFORMATION TECH
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