1, picture optimization
Generally speaking, users tend to give up web pages that have not been loaded within 3 seconds. Because the loaded pictures occupy most of the byte space available for downloading on the web page, the key to affect the download time of the web page comes from the optimization of pictures. Beijing IT Training found that one of the best ways to ensure correct image optimization is to use the correct size and format, such as JPEG, GIF or PNG format. Our goal is to reduce the file size as much as possible without affecting image quality.
2. Hidden objects
Caching is a mechanism for temporarily storing web pages, which can reduce bandwidth and improve performance. Caching mode starts when visitors arrive at your site. This saves server time and improves efficiency. When browser caching is enabled, visitors can visit the website faster.
Step 3 compress
Gzip is a file compression software application, just like turning your website into a zip file. Most servers and customers support Gzip. Beijing IT Training found that when a browser compatible with Gzip requests the server to send a response to the browser resources, it can quickly reduce the delay of the website.
4, concise code
Simplicity of code is very important, so that HTML, JavaScipt and CSS files can be packaged and compressed into smaller files to run. Beijing Computer Training found that if there are five JavaScript files in the mobile phone website, the browser will send out five separate HTTP requests to get them. In order to reduce congestion and delay, another method is to shrink and connect five files together.