Use Minify to optimize website performance _ PHP Tutorial

Source: Internet
Author: User
Tags website performance
Use Minify to optimize website performance. Minify is an application developed with PHP5. it improves website performance by following some Yahoo optimization rules. It merges multiple CSS or JavaScript files and removes unnecessary spaces and annotations. MinifyIt is an application developed with PHP5 and improves website performance by following some Yahoo optimization rules. It will merge multiple CSS or JavaScript files, remove unnecessary spaces and comments, perform gzip compression, and set the browser cache header. Minify is designed like Yahoo's Combo Handler Service, but Minify can merge any JavaScript and CSS files you want to merge.

Generally, the bottleneck of website speed lies in the front-end, and the most critical is the loading speed of resources. However, most browsers have a limit on the number of concurrent requests for a single domain name, therefore, if a page contains many resources, such as CSS and JavaScript files, the loading speed of the website will be significantly reduced. a better way is to access multiple files through one request, this will not affect the previous file maintenance, but will reduce the number of clear resources, Minify is born for it.

The following two figures show a comparison of the website request time before Minify is enabled and after Minify is enabled. we can see that after Minify is enabled, the resource loading time is reduced from 125 ms to ms, A total of 50% of the time is saved.


Http://www.bkjia.com/PHPjc/445823.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445823.htmlTechArticleMinify is an application developed with PHP5 to improve website performance by following some Yahoo optimization rules. It will merge multiple CSS or JavaScript files and remove unnecessary spaces and notes...

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.