Need: The company's XML XSLT showed data, and now performance is increasingly prominent, IE is a bit slow to analyze XSL. And the user feels that the operation of the interface is not very convenient, which requires us to develop a speed response, more step-by-step exploration of the user-friendly HTML display, from the new design of our front desk UI section.
Analysis: The original speed is slow, there is a few points below:
1 The JavaScript function file is too large, and it is probably more than 1,000 JavaScript statements that have been more than 1000. These statements are all included in each page.
2 Use template to call the way, there may be performance issues
Improved ideas:
1 Replace the pop-up selection to another way. Amazing drop-down list. These things are to create a component, and the sources of data that can be selected freely. Explain the style. .
2 Improved list data display: Easy to set up, do not need to implement the form of each table. Only one component, let him take the data to the background. Load the data into the UI, realize no refresh, reduce the server The burden of transmitting data. This list component can define the style yourself, the amount, the number can be formatted, you can summarize. Sort and other basic functions.
3 The front and back data interaction methods use no refresh mode: mainly 2 points:
(1) When the new data window is displayed separately, it is not necessary to refresh the window again. Click OK to do 2 things. First: