Even the best website, if the opening speed is slow, 10 people will have 9 people choose to leave, I summed up about 9 factors that affect the speed of the website, but the speed of the website page display depends on a number of factors, including server performance, network transmission quality, the bandwidth of the site, DNS resolution, web page content including JS code involved, the size of images and videos and other factors, if incomplete, welcome to follow the post to add and correct.
1: Minimum bandwidth of the network
This is the main factor, in the slow site on a good bandwidth access speed as fast (is more money), the network bandwidth, including the site where the server bandwidth and the user side of the two locations, the docking point refers to the exit end and the entrance end (such as telecommunications on the Netcom docking point), another is the user's own minimum bandwidth, if the user is doing 512K broadband we can do nothing to help.
2: DNS resolution time
DNS resolution, including the number of round-trip resolution and the time spent on each resolution, the product of the two is the time consumed by DNS resolution, therefore, many people ignore the DNS problem, in fact, DNS on the website resolution speed is also very important, such as Google recently launched Page Speed Service and domestic DNSPOD free to do DNS to accelerate the domain name, we can try.
3: machine configuration
Including the server side and the client side of the hardware configuration, the same network environment, dual-core server computing power must be stronger, no doubt, the same network environment, you use a Celeron machine and a Pentium 4 dual-processor computer, open the same web page, speed, but also certainly not the same.
4: Server Software
The amount of software, stability, and proper software configuration can affect the server environment so much that it affects network speed. Server installation of a software firewall will sacrifice some network speed, so a VPS, or stand-alone server user with a firewall is sufficient.
5: Size of web content (important)
The size of the web page file is the most important factor in whether the site can be opened quickly, if the server and other hardware aspects we can not decide, I strongly recommend starting from here, whether it is a table or DIV + CSS, proper optimization of the code, can reduce the size of the web page.
Try to optimize the code, with the least code, such as the other day Lu Song Song blog template after streamlining, so that each page reduced more than 100K, improve the speed of the site, do not include the entire content in a box, in the "to the site to lose weight, let the site speed up" article, I introduced in detail, the web page code optimization methods. At the same time, a large number of errors, redundant code is also one of the site speed slowdown.
6: Large number of database operations
This is especially true for asp+access structured websites, especially when a large number of users submit comments at the same time, which will lock up the database and cause the website to not open. For example, when I publish an article on my blog, it will take a few minutes for the site to open, which will greatly reduce the speed of the site.
7: Use a lot of javascript
The use of a large number of JS on the site is a big taboo, not only search engines can not be included, while will continue to submit requests to increase the burden on the server, such as mouse effects, column effects, status bar effects and so on. The principle of these special effects is first downloaded by the server to your local machine, and then run on your local machine to produce, and then you can see. Special effects to do more, in your local machine will run for more than half a day to complete all, and if your host configuration is general, it will be even slower. So, it is always recommended to use javascript effects sparingly.
8: Use large images and flash on the page
We know that the picture is the most important factor that slows down the network speed, the picture after processing, can make the picture space is smaller, every blog post of the picture of Luzong Song Song blog have been processed, but lead to some of the picture clarity is not enough, otherwise a lot of pictures at the beginning will take up a lot of space and make the site open slowly, the same flash is also a reason.
9: Too many references to the content of other sites
This includes images, video files, etc. from other sites that you reference, and if you reference something directly on the page from another site, and that site is slow, or that page from that site no longer exists, then you will open very slowly.