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