As a visual language, enterprise website design pays special attention to layout and layout. Although the design of homepage is not equivalent to graphic design, they have many similarities. Web site to do more beautiful, if you open more slowly, or will lose a lot of users access.
The bandwidth of network bandwidth, web site server directly determines the website open speed, of course, if the lack of user's network bandwidth, it can only be helpless. Here, generally recommended sites are placed on servers that are on the backbone node and, of course, prices are relatively high. Secondly, you can choose some of the larger hosting providers, the ability to buy exclusive bandwidth. Of course, the best way is to do CDN (Content Delivery Network), so that you can ensure that the user is always visiting his nearest node, but this technology will be relatively high.
Two, the analysis time DNS is that most users do not concern the general domain name registration, the service providers will be free with a DNS resolution service, but it is basically equal to the chicken ribs, in most cases, the DNS server can fight against external attacks, but also do not have the ability to do dynamic settings for access lines the function of. So, the real case is that some websites can not access the reasons, intermittent, is actually caused by the DNS server is not stable, so 100 network recommended must choose a professional DNS service providers can recommend the domestic DNSPOD.
Three, web code problems, this content involves more, generally speaking, do the following content on it.
The 1. page structure follows the W3C specification, and the page code is concise enough.
2., pictures, styles, scripts and other static content cache settings, while the picture should be controlled size, if possible, the server should open gzip compression.
3. more than one style, the script file should be merged into a file as much as possible, reducing the browser's concurrency.
4., the script file should be placed at the bottom of the page as much as possible, does not affect the page display.
Four, database problems, database problems, you need to pay attention to the construction of the site, the site opened slowly, 80% is spent in connection with the database and data interaction. Understanding of website development should know that the database connection is very IO resources. So the general site in the building, we need to design a set of perfect caching mechanism to reduce the interaction with the database, the cache can be designed as a memory cache or physical disk cache, usually after this operation, the site will open speed is significantly improved, especially on larger sites, once the amount of data to the database the scale of time will encounter such problems.
沒有留言:
張貼留言