With the rapid development of the Internet, in today's Internet is a very fast platform, netizens want in the shortest possible time to find the information they want. According to the survey by Akamai, the world's largest CDN service provider, if a page is loaded for more than 4 seconds, 75% of visitors will exit directly. What is this warning to our webmaster? The answer is very simple, as a webmaster we need to optimize the loading time of the site, otherwise you will lose your visitors. So how do we optimize load time?
One: Shrink your site's scripts and CSS files
One way to speed up your site's load speed is to reduce the number of HTTP requests and reduce the overall size of the site. We can use Minify, a free PHP5 application that can help you in some way. If you install the software on the server, it will combine all the CSS files. It also has the same function for your JavaScript. More importantly, it can also eliminate unnecessary gaps and annotations to reduce the overall size of the role. Minify also uses Gzip to compress files that are provided to end users. It also reduces the size of the whole. The best thing about minify is that it's a free, open source software.
Second: Optimize your image
For many web sites, the largest files available to the user are image files. But don't worry, we have a way to optimize the load speed without deleting the image. If you want to export images from Photoshop, make sure you choose to save as a Web file. If you have a wide range of colors and details of the pictures, such as photos, you can save as JPG; you can find a balance between the image size and the appearance of the image. If there is not a lot of color or appearance, you can save directly to GIF or PNG these. Also remember to save the original size of the picture before you modify it.
Three: Control caching
If you have a website that is dynamically generating pages, you should set up pages so that Web pages can generate static versions of pages and data queries. This way your site does not have to create a dynamic page every time a user logs on to your site. If your site is using WordPress, there are two cached plugins that can help you. This is even a plug-in is WP Super cache and W3 total cache.
Conclusion
The internet is a growing and constantly improving place. As Internet users are demanding more speed, we know that we need to build a successful website to meet their requirements and expectations. The authors outlined in this article should be able to help your website speed performance on the right track. This article by the elderly mobile phone http://www.3baidu.net/handwritten original, reproduced please indicate the source, thank you.