In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The website visit is slow, the web page opens slowly, how should optimize?
IIS7 website monitoring
Test whether the website has been hijacked, website opening speed detection, changed title and other information.
The main reasons for the slow web pages are as follows: first, insufficient network bandwidth is the most important factor, that is, the lack of broadband. For the same website, if the broadband is high, the access speed will be significantly faster.
Solution: find a carrier to increase bandwidth.
2. Too many http requests
Solution: reduce the number of http requests.
Picture map: integrate multiple pictures into one picture to locate the hyperlink.
CSS Sprites merges images to display elements by specifying CSS's backgroud-image and backgroud-position.
Merge JS scripts and CSS style sheets.
Use external JS and CSS files.
Third, DNS resolution speed DNS resolution is from domain name to IP resolution.
DNS parsing includes the number of times to and fro and the time spent on each parsing, and the product of both is the total time spent on DNS parsing. Many people ignore the factor of DNS parsing, which is also very important to the speed of website parsing.
Solution: replace the DNS server with low latency.
Fourth, it takes too long to receive data, such as downloading too much resources.
Solution: compress HTTP transmission, that is, compress again in the process of HTTP transmission on the basis of js,css, pictures and other resources have been compressed. The client can declare the compression mode supported by the browser through the Accept-Encoding header, and the server can enable compression, configure the compressed file type and compression mode through Content-Encoding. Gzip uses lossless compression, which has the best compression effect, and has become the most widely used and supported data compression format in browsers.
Fifth, the server and client hardware configuration in the same network environment, the computing power of the dual-core server must be stronger. Also in the client, the same network environment, you use a configuration of Intel i7 processor and i3 processor to open the same page, the speed must be different.
Solution: improve the hardware configuration.
VI. Excessive web resources
Solution: using CDN to deploy the network to improve download speed, you can first distribute web resources through a free CDN provider.
VII. Excessive content on the page
The web page contains a large number of unprocessed images, which can cause them to open more slowly if they are large. Other things, such as Flash and film and television files, will affect access speed, while redundant code is also one of the factors that slow down the speed of the website.
Solution: webmasters need to optimize the code as much as possible, with the least code to achieve the best results.
8. The JavaScript script is too large, blocking the loading of the page
The use of javascript special effects on the website is a big taboo, not only can not be crawled by the search engine, but also because of constantly making requests to the server, resulting in adding server burden, the site becomes slow.
Solution: put the JavaScript script in front of the tag. When script does not have async and defer, the JS file will be executed immediately after download. In this case, placing the script at the top blocks the page rendering, causing a "white screen" when the network speed is slow, and does not continue to render the page until the script has been downloaded. Therefore, putting script at the bottom allows the page to render as soon as possible.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.