Vs merge and compress css, js plug-in -- Bundler & amp; Minifier,

Source: Internet
Author: User

Vs merge and compress css, js plug-in -- Bundler & Minifier,

I previously made a lucky draw for a large turntable. Some users reported that the page was not visible due to the fire. I suspect that js loading requests are too slow. Therefore, I am debugging and optimizing the previous page today.

The first thing that comes to mind is to compress and optimize the page js and css. Baidu's vs integrated plug-in does not seem to have good support, I found a satisfactory plug-in vs-Bundler & Minifier.

This vs plug-in: Click me

Plug-in function description:

1. Merge multiple css, js, and html files into a separate file

2. Save the source file and re-combine it automatically.

3. Compress css, js, and html files

And so on... (If I do not use the plug-in, I will not write it. You can refer to the English description of the plug-in)

 

Usage:

For example, if I have two local js Files, right-click them and you will see the menu Bundle and Minify Files (merge and compress Files)

Then, select the name of the new file (my local file is newtask. js) to automatically combine the two js files into a js file and generate the compressed file.

With the compression of this plug-in, after I replace all the page js with the compressed min. js, the page loading time is reduced from 6 s to 2 s. The effect is quite obvious.

Please give me more comments if there is anything wrong. Thank you! Pai_^

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.