CN105045598A - Java-based web front-end performance optimization and online method and system - Google Patents

Java-based web front-end performance optimization and online method and system Download PDF

Info

Publication number
CN105045598A
CN105045598A CN201510484748.8A CN201510484748A CN105045598A CN 105045598 A CN105045598 A CN 105045598A CN 201510484748 A CN201510484748 A CN 201510484748A CN 105045598 A CN105045598 A CN 105045598A
Authority
CN
China
Prior art keywords
file
configuration file
compression
standard grade
performance optimization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510484748.8A
Other languages
Chinese (zh)
Inventor
郭晓许
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201510484748.8A priority Critical patent/CN105045598A/en
Publication of CN105045598A publication Critical patent/CN105045598A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a java-based web front-end performance optimization and online method and system, comprising: presetting a specified configuration file; determining whether a current engineering application root directory comprises a configuration file with a name the same as that of a the specified configuration file, if yes, prompting abnormal information and finishing the process, and if no, determining whether the configuration file comprises a to-be-compressed file or directory, if yes, performing validity check on the to-be-compressed file or directory in the configuration file under the current engineering application root directory, performing compression processing on the to-be-compressed file that passes the validity check, generating an object file, and deleting a file that is in configuration files under the current engineering application root directory and meets a to-be-deleted redundant file identifier. According to the present invention, code merging and compression is performed automatically and application redundant code is deleted by means of file configuration, a quantity of requests for a server is reduced in an application running period, a data transmission amount between networks is reduced, an operation is convenient, and work efficiency is high.

Description

A kind of web front-end performance optimization based on Java and the method and system of reaching the standard grade
Technical field
The present invention relates to internet web front-end development field, the method and system particularly relating to a kind of web front-end performance optimization based on Java and reach the standard grade.
Background technology
The develop rapidly of current internet, the changes in demand of the network user is not only fast but also large, and subtle, update cycle of most of website be all by day, hour even minute in units of.In this case, the front end of website has just become change part the most frequently.Along with the attention gradually that Internet firm develops front end, front end exploitation number also gets more and more, but the input of technician is always limited.In the face of the Rapid Variable Design of demand, cause a lot of problem as aspects such as front end coding criterion, performance of front end optimization, front end security breaches strick precautions.In order to address these problems, a kind of front-end module technology maturation just gradually with advanced development idea and good design pattern, and be subject to the favor of more and more company.
The first step of front-end module technology is exactly each page fragmentation is become a lot of individual basic module, then by file independent for each CMOS macro cell one, when page request loads, use and be loaded into corresponding js or css file, although like this HTML as skeleton and the CSS as presentation layer and the Javascript that realizes behavior are split, decrease the Circular dependency between them, reduce coupling, improve design efficiency, but equally also for system application brings various problem.First, a large amount of modules can be produced in application, not only be not easy to management, number of request also can be made to surge, as a page has four modules, that just produces 4 (individual module) × 2 (individual type: CSS/JS)=8 requests to I haven't seen you for ages, add some function libraries, request will be more, in addition, content also can cause serious performance issue without compression, blocks page display.
Summary of the invention
The method and system that technical matters to be solved by this invention is to provide the high web front-end performance optimization based on Java easy and simple to handle of a kind of work efficiency and reaches the standard grade.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of web front-end performance optimization based on Java and the method for reaching the standard grade, comprise the following steps:
Step S1, presets specified configuration file; Described specified configuration file comprises cleaning packing path, the file of compression to be combined or catalogue and redundant file to be deleted mark;
Whether step S2, comprise the configuration file with described specified configuration file same names under judging current engineer applied root directory; If comprise, perform step S3, if do not comprise, then point out abnormal information and terminate;
Step S3, judges the file or the catalogue that whether comprise compression to be combined in the configuration file under current engineer applied root directory, if comprise, then performs step S4, if do not comprise, then directly performs step S6;
Step S4, carries out validity check to the file of the compression to be combined in the configuration file under current engineer applied root directory or catalogue, judges whether by described validity check, if pass through, then perform step S5, if do not pass through, then point out abnormal information and terminate;
Step S5, carries out compression merging treatment, generating object file by the file of the compression to be combined by described validity check, and is deleted by the source file of the file of compression to be combined;
Step S6, will meet the file erase of described redundant file mark to be deleted in the configuration file under current engineer applied root directory.
On the basis of technique scheme, the present invention can also do following improvement.
Further, the described web front-end performance optimization based on Java and the hardware environment of method of reaching the standard grade are the running environment being provided with JDK.
Further, the described web front-end performance optimization based on Java and the operating system environment of method of reaching the standard grade are linux/unix/unix simulated environment.
Further, in step S4, described validity check comprises file structure inspection and basic syntax inspection.
Further, shell script is used by the configuration file under the current engineer applied root directory after execution of step S6 to carry out encapsulation packing and reach the standard grade.
The another kind of technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of web front-end performance optimization based on Java and the system of reaching the standard grade, and comprises specified configuration file presetting module, configuration file judge module, the file of compression to be combined or catalogue judge module, validity check judge module, compression merge module and redundant file removing module;
Described specified configuration file presetting module is used for presetting specified configuration file; Described specified configuration file comprises cleaning packing path, the file of compression to be combined or catalogue and redundant file to be deleted mark;
Whether described configuration file judge module comprises the configuration file with described specified configuration file same names under judging current engineer applied root directory;
The file of described compression to be combined or catalogue judge module are for judging the file or the catalogue that whether comprise compression to be combined in the configuration file under current engineer applied root directory;
Described validity check judge module is used for the file of the compression to be combined in the configuration file under current engineer applied root directory or catalogue are carried out to validity check and judge whether by described validity check;
Described compression merges module and is used for the file of the compression to be combined by described validity check to carry out compression merging treatment, generating object file, and is deleted by the source file of the file of compression to be combined;
Described redundant file removing module is used for the file erase by meeting described redundant file mark to be deleted in the configuration file under current engineer applied root directory.
On the basis of technique scheme, the present invention can also do following improvement.
Further, the described web front-end performance optimization based on Java and the hardware environment of system of reaching the standard grade are the running environment being provided with JDK.
Further, the described web front-end performance optimization based on Java and the operating system environment of system of reaching the standard grade are linux/unix/unix simulated environment.
Further, validity check described in validity check judge module comprises file structure inspection and basic syntax inspection.
Further, after described redundant file removing module, the configuration file generation under current engineer applied root directory changed uses shell script carry out encapsulation packing and reach the standard grade.
The invention has the beneficial effects as follows: the present invention is by after configuration, automatically code merging is carried out, compression, and delete application redundant code, the number of request to server between application run-time is reduced with this, reduce inter-network data transmission quantity, greatly shorten code to merge simultaneously, the time that the processes such as compression consume, and can code on synchronized update line upon compression, simple operation of the present invention, application principle is easy-to-understand, implementation step is short and sweet, application personnel can also skillfully grasp by left-hand seat fast, the effect easily reaching application performance optimization and reach the standard grade, therefore human users can be simplified, increase work efficiency.
Accompanying drawing explanation
The method flow diagram that Fig. 1 is the web front-end performance optimization based on Java of the present invention and reaches the standard grade;
The system construction drawing that Fig. 2 is the web front-end performance optimization based on Java of the present invention and reaches the standard grade.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
The method flow diagram that Fig. 1 is the web front-end performance optimization based on Java of the present invention and reaches the standard grade.
As shown in Figure 1, a kind of web front-end performance optimization based on Java and the method for reaching the standard grade, comprise the following steps:
Step S1, presets specified configuration file; Described specified configuration file comprises cleaning packing path, the file of compression to be combined or catalogue and redundant file to be deleted mark; The title of configuration file can be set to web-pack.xml.
Whether step S2, comprise the configuration file with described specified configuration file same names, namely whether comprise the configuration file that name is called web-pack.xml under judging current engineer applied root directory; If comprise, perform step S3, if do not comprise, then point out abnormal information and terminate.
Step S3, judges the file or the catalogue that whether comprise compression to be combined in the configuration file under current engineer applied root directory, if comprise, then performs step S4, if do not comprise, then directly performs step S6.
Step S4, file or the catalogue of the compression to be combined in the configuration file under current engineer applied root directory carry out validity check, judge whether by described validity check, if pass through, then perform step S5, if do not pass through, then point out abnormal information and terminate; Wherein validity check comprises the inspection to file structure and the inspection etc. to basic syntax.
Step S5, carries out compression merging treatment, generating object file by the file of the compression to be combined by described validity check, and is deleted by the source file of the file of compression to be combined.
Step S6, will meet the file erase of described redundant file mark to be deleted in the configuration file under current engineer applied root directory.
Step S7, uses the configuration file merged through overcompression and occur after deleting redundant file to change shell script to carry out encapsulation and packs, and reach the standard grade under designated environment path.
Be the running environment being provided with JDK based on the web front-end performance optimization of Java and the hardware environment of method of reaching the standard grade, operating system environment is linux/unix/unix simulated environment.
The system construction drawing that Fig. 2 is the web front-end performance optimization based on Java of the present invention and reaches the standard grade.
According to the above-mentioned web front-end performance optimization based on Java and the method for reaching the standard grade, corresponding have web front-end performance optimization based on Java and the system of reaching the standard grade, as shown in Figure 2, based on web front-end performance optimization and a system of reaching the standard grade of Java, comprise specified configuration file presetting module, configuration file judge module, the file of compression to be combined or catalogue judge module, validity check judge module, compression merge module and redundant file removing module; Described specified configuration file presetting module is used for presetting specified configuration file; Described specified configuration file comprises cleaning packing path, the file of compression to be combined or catalogue and redundant file to be deleted mark; Whether described configuration file judge module comprises the configuration file with described specified configuration file same names under judging current engineer applied root directory; The file of described compression to be combined or catalogue judge module are for judging the file or the catalogue that whether comprise compression to be combined in the configuration file under current engineer applied root directory; Described validity check judge module is used for the file of the compression to be combined in the configuration file under current engineer applied root directory or catalogue are carried out to validity check and judge whether by described validity check; Described compression merges module and is used for the file of the compression to be combined by described validity check to carry out compression merging treatment, generating object file, and is deleted by the source file of the file of compression to be combined; Described redundant file removing module is used for the file erase by meeting described redundant file mark to be deleted in the configuration file under current engineer applied root directory.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1., based on web front-end performance optimization and a method of reaching the standard grade of Java, it is characterized in that, comprise the following steps:
Step S1, presets specified configuration file; Described specified configuration file comprises cleaning packing path, the file of compression to be combined or catalogue and redundant file to be deleted mark;
Whether step S2, comprise the configuration file with described specified configuration file same names under judging current engineer applied root directory; If comprise, perform step S3, if do not comprise, then point out abnormal information and terminate;
Step S3, judges the file or the catalogue that whether comprise compression to be combined in the configuration file under current engineer applied root directory, if comprise, then performs step S4, if do not comprise, then directly performs step S6;
Step S4, carries out validity check to the file of the compression to be combined in the configuration file under current engineer applied root directory or catalogue, judges whether by described validity check, if pass through, then perform step S5, if do not pass through, then point out abnormal information and terminate;
Step S5, carries out compression merging treatment, generating object file by the file of the compression to be combined by described validity check, and is deleted by the source file of the file of compression to be combined;
Step S6, will meet the file erase of described redundant file mark to be deleted in the configuration file under current engineer applied root directory.
2. the web front-end performance optimization based on Java according to claim 1 and the method for reaching the standard grade, is characterized in that, the described web front-end performance optimization based on Java and the hardware environment of method of reaching the standard grade are the running environment being provided with JDK.
3. the web front-end performance optimization based on Java according to claim 1 and the method for reaching the standard grade, is characterized in that, the described web front-end performance optimization based on Java and the operating system environment of method of reaching the standard grade are linux/unix/unix simulated environment.
4. the web front-end performance optimization based on Java according to claim 1 and the method for reaching the standard grade, it is characterized in that, in step S4, described validity check comprises file structure inspection and basic syntax inspection.
5. the web front-end performance optimization based on Java according to claim 1 and the method for reaching the standard grade, is characterized in that, the configuration file under the current engineer applied root directory after also comprising execution of step S6 uses shell script to carry out encapsulation and packs and reach the standard grade.
6. the web front-end performance optimization based on Java and the system of reaching the standard grade, it is characterized in that, comprise specified configuration file presetting module, configuration file judge module, the file of compression to be combined or catalogue judge module, validity check judge module, compression merge module and redundant file removing module;
Described specified configuration file presetting module is used for presetting specified configuration file; Described specified configuration file comprises cleaning packing path, the file of compression to be combined or catalogue and redundant file to be deleted mark;
Whether described configuration file judge module comprises the configuration file with described specified configuration file same names under judging current engineer applied root directory;
The file of described compression to be combined or catalogue judge module are for judging the file or the catalogue that whether comprise compression to be combined in the configuration file under current engineer applied root directory;
Described validity check judge module is used for the file of the compression to be combined in the configuration file under current engineer applied root directory or catalogue are carried out to validity check and judge whether by described validity check;
Described compression merges module and is used for the file of the compression to be combined by described validity check to carry out compression merging treatment, generating object file, and is deleted by the source file of the file of compression to be combined;
Described redundant file removing module is used for the file erase by meeting described redundant file mark to be deleted in the configuration file under current engineer applied root directory.
7. the web front-end performance optimization based on Java according to claim 6 and the system of reaching the standard grade, is characterized in that, the described web front-end performance optimization based on Java and the hardware environment of system of reaching the standard grade are the running environment being provided with JDK.
8. the web front-end performance optimization based on Java according to claim 6 and the system of reaching the standard grade, is characterized in that, the described web front-end performance optimization based on Java and the operating system environment of system of reaching the standard grade are linux/unix/unix simulated environment.
9. the web front-end performance optimization based on Java according to claim 6 and the system of reaching the standard grade, it is characterized in that, validity check described in validity check judge module comprises file structure inspection and basic syntax inspection.
10. the web front-end performance optimization based on Java according to claim 6 and the system of reaching the standard grade, it is characterized in that, after described redundant file removing module, the configuration file generation under current engineer applied root directory changed uses shell script carry out encapsulation packing and reach the standard grade.
CN201510484748.8A 2015-08-07 2015-08-07 Java-based web front-end performance optimization and online method and system Pending CN105045598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510484748.8A CN105045598A (en) 2015-08-07 2015-08-07 Java-based web front-end performance optimization and online method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510484748.8A CN105045598A (en) 2015-08-07 2015-08-07 Java-based web front-end performance optimization and online method and system

Publications (1)

Publication Number Publication Date
CN105045598A true CN105045598A (en) 2015-11-11

Family

ID=54452163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510484748.8A Pending CN105045598A (en) 2015-08-07 2015-08-07 Java-based web front-end performance optimization and online method and system

Country Status (1)

Country Link
CN (1) CN105045598A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293827A (en) * 2016-08-08 2017-01-04 杭州玳数科技有限公司 A kind of method and system being controlled web front-end issue by configuration file
CN106708846A (en) * 2015-11-12 2017-05-24 北京国双科技有限公司 Collection method and device for webpage data
CN109871361A (en) * 2018-11-26 2019-06-11 乐蜜有限公司 A kind of file uploading method, device, electronic equipment and readable storage medium storing program for executing
CN109992296A (en) * 2019-02-14 2019-07-09 平安科技(深圳)有限公司 The method, apparatus and system of multiple configuration files in one engineering of synchronous vacations
WO2019134297A1 (en) * 2018-01-08 2019-07-11 平安科技(深圳)有限公司 Method and device for detecting configuration pair naming duplicate, storage medium, and smart device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283947A (en) * 2014-09-28 2015-01-14 深圳市中科无软件有限公司 Java script dynamic consolidated server and work process thereof
CN104331316A (en) * 2014-11-28 2015-02-04 中国农业银行股份有限公司 Code compression method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283947A (en) * 2014-09-28 2015-01-14 深圳市中科无软件有限公司 Java script dynamic consolidated server and work process thereof
CN104331316A (en) * 2014-11-28 2015-02-04 中国农业银行股份有限公司 Code compression method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708846A (en) * 2015-11-12 2017-05-24 北京国双科技有限公司 Collection method and device for webpage data
CN106293827A (en) * 2016-08-08 2017-01-04 杭州玳数科技有限公司 A kind of method and system being controlled web front-end issue by configuration file
CN106293827B (en) * 2016-08-08 2019-08-16 杭州玳数科技有限公司 A kind of method and system controlling web front-end publication by configuration file
WO2019134297A1 (en) * 2018-01-08 2019-07-11 平安科技(深圳)有限公司 Method and device for detecting configuration pair naming duplicate, storage medium, and smart device
CN109871361A (en) * 2018-11-26 2019-06-11 乐蜜有限公司 A kind of file uploading method, device, electronic equipment and readable storage medium storing program for executing
CN109871361B (en) * 2018-11-26 2023-05-23 北京乐我无限科技有限责任公司 File uploading method and device, electronic equipment and readable storage medium
CN109992296A (en) * 2019-02-14 2019-07-09 平安科技(深圳)有限公司 The method, apparatus and system of multiple configuration files in one engineering of synchronous vacations
CN109992296B (en) * 2019-02-14 2023-10-17 平安科技(深圳)有限公司 Method, device and system for synchronously modifying multiple configuration files in one project

Similar Documents

Publication Publication Date Title
CN108536761B (en) Report data query method and server
US11640474B2 (en) Method and apparatus for operating database
CN105045598A (en) Java-based web front-end performance optimization and online method and system
CN107291523B (en) Web front-end message bus system
CN103064664B (en) Hadoop parameter automatic optimization method and system based on performance pre-evaluation
CN112270550B (en) New energy power tracing method and system based on blockchain
CN109460223B (en) API gateway management system and method thereof
CN112104709B (en) Intelligent contract processing method, device, medium and electronic equipment
CN113779444B (en) Interface development method, zero code engine and zero code data interface development system
CN103186455B (en) Page automatic test script generates method and system
US9519537B2 (en) Apparatus, system and method for application log data processing
CN102946410A (en) Method and device for network synchronization
CN102946411A (en) Network synchronization system
CN103473034B (en) A kind of method and apparatus of dynamic publishing Web service
CN112559635B (en) Service processing method, device, equipment and medium for Ethernet alliance chain node
CN104320312A (en) Network application safety test tool and fuzz test case generation method and system
CN106446063A (en) Webpage updating system
CN104156219A (en) Electric power marketing and distributing model verifying method based on ontology technology
CN107133036A (en) The management method and device of a kind of module
CN104598250A (en) System management structure and management implementation method for same
CN103677854A (en) Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment
CN107783760B (en) Visual development method for protection device based on functional component
CN106936643B (en) Equipment linkage method and terminal equipment
CN107291474A (en) A kind of front end engineering automates constructing system
CN114860566A (en) Source code testing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151111