PHP Implementation page Static 1-2 about optimizing page response time

Source: Internet
Author: User

2015-10-27 about optimizing page response time: 1. Dynamic page static (access static pages, reduce database queries, improve access speed) dynamic page statics is a very effective acceleration method if some content in the page changes infrequently. Increase the page response rate. Essence: Generates a static HTML file.  The reason is that the static page does not need to parse, compile, reduce the server computing time (decompression). Benefits: 1. Reduce compute time for server scripts (1.1.php File Execution order: Program Analysis----and run-to-display results. 1.2. Execution order of static HTML files: run. Dynamic program execution process: Connect to database server or cache server-get data (data processing)-populate to template-render to user. 2. Reduce the server's response time, thereby reducing the pressure on the server. 3. Reduce the server cache. Description: An application that is not suitable for frequently changing content (for example, Weibo, etc.): timeliness, news or reporting applications 2. Optimize the database (optimize SQL statements, improve query speed, thus reducing page opening time) 3. Use load Balancing (Buy a server ... 4. Use caching (similar to dynamic page statics) 1, minimize the number of HTTP requests 2, reduce DNS lookups 3, avoid jump 4, cacheable Ajax 5, defer loading content 6, preload 7, reduce the number of DOM elements 8, divide page content by domain name 9, minimize the number of IFRAME 10, do not appear 404 error 11, use the content distribution network 12, specify expires or Cache-control 13 for the file header, Gzip compress the contents of the file 14, configure the ETag 15, refresh the output buffer 16 as soon as possible, use get to complete the AJAX request 17, Put style sheets on top 18, avoid using CSS expressions 19, use external JavaScript and CSS 20, cut JavaScript and CSS 21, replace @import 22 with <link>, avoid using filters 23, Place the script at the bottom of the page

PHP Implementation page static 1-2 about optimizing page response time

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.