Before doing a big turntable lottery, because the comparison of fire, some user feedback can not see the situation of the page, I suspect that the JS loading request is too slow, so today for a previous page debugging optimization.
The first thought is the page of JS and CSS compression optimization, Baidu the next vs Integrated plug-in, seemingly no good support, their own in the VS found a very satisfied with the plug-in--bundler & Minifier
This vs plugin: Point me
Plugin function Description:
1. Merging multiple css,js,html files into a single file
2. Save the source file for automatic re-grouping.
3. Compressing css,js,html files
Wait a minute... (The other I do not use to write, you can see the plug-in English instructions)
How to use:
For example, I have two local JS files, I choose these two JS files, right-click, you will see the menu--bundle and minify files (merge and compress file)
Then choose the name of the new file saved (my local file called: newtask.js), you can automatically merge two JS into a JS and generate compressed files.
Through the compression of the plugin, I replace the page JS all to the compressed min.js after the page load time from the original 6s, reduced to 2 seconds. The effect is still more obvious.
If there is a wrong place please comment, thank you! ^_^
vs Merge Compression Css,js plugin--bundler & Minifier