Use site code and host configuration to improve Web site access speed

Source: Internet
Author: User
Keywords Access speed
Tags access access speed advertising advertising alliance cache code configuration continue

Absrtact: These days in the webmaster net to see an article about the speed of Web site access, deeply feeling, web site speed impact on the site's first impression, if the site access speed is not to force, then do not want the search engine will continue to bring traffic, not to hope

In the past few days in the Webmaster network to see an article about improving the speed of Web site access, deeply feeling, web site speed impact on the site's first impression, if the site access speed is not to force, then do not want the search engine will continue to bring traffic, but also do not want users to stay in your site for a long time, so, enhance the site's user experience is very important.

Of course, the article mentioned above mainly uses the website code and the host configuration to enhance the website visit speed, the main is to increase the file cache time and configure DNS, said more professional, the following simple summary to improve the speed of Web site access to a few details to ensure that the page open speed of not more than 6 seconds, this is the basic requirements.

One, the website host do not covet cheap

The first way to improve the speed of a Web site is to get the hardware select the host when possible to choose the domestic host, even if it is not like to prepare | case, then Hong Kong host is also good, the United States, South Korea's host speed is indeed passable, on average more than 2 seconds than the domestic; there is a foreign host may be banned IP, So do normal station select domestic host, at the same time choose a bit well-known host business, this can ensure the long-term stability of the server at the same time stable speed, will not change the server at regular intervals.

II. Select a reliable DNS server

DNS server impact is the domain name resolution time, in general, DNS resolution speed within 0.3 seconds, good DNS resolution can reach 0.005 seconds, bad DNS resolution time may be 1-2 seconds, so it is important to choose a stable and reliable DNS server. Typically, a domain name service provider or a space service provider will provide a free DNS server, but if the server is not stable, it is recommended to use a free smart DNS resolution service such as Dnspod.

Optimizing Web code and caching time

For most users, may not buy a particularly powerful server, so do not see Sohu, Sina home page is very large, other people's hardware speed is very good, so the Web page a big point does not matter. For ordinary webmaster, then try to optimize the size of the page, through the CSS to reduce redundant code Needless to say, you can adjust the JS call code, encapsulated into a JS file; users can go to Webkaka there to test, you can see the different code loading time. There is the cache time, if the user has the right to adjust the host configuration, you can increase the site image file cache time.

Four, reduce picture video and music class file

If you are not ready to do picture stations, video stations, music stations, so try to reduce such files, such as you can call Youku's video or other station music, try not to upload their own, these files will occupy a lot of resources, affecting the speed of the site. If your host space speed in general, then do not add a large number of pictures and audio and video files, the same will be very resource-intensive.

V. Advertising to select a stable advertising alliance

For most stationmaster, may add ads will choose Baidu or Google ads, which will hardly affect the speed of the site; however, there are many netizens will add Ali Mother's ads, it turns out, if you are not a big Taobao custom ads, then ordinary Taobao ads may affect the speed of the site, Taobao customers and ordinary Amoy ads call the server different, ordinary Amoy ads in many people will be very card, or even slow down more than 3 seconds of Web page opening speed. If you can, choose a stable ad league, the threshold of the Advertising alliance, while the advertising code encapsulated to the bottom of the page.

Vi. plug-ins to reduce reliance on outbound data calls

With the opening of the big platform, many users want to increase the number of login or share articles or comment on the article plug-ins, such plug-ins can be appropriately increased, but if the plug-in to call the data outside the station, then choose a large platform to provide plug-ins, so that the plug-in call station outside the data will not affect the speed of the site; Try to put the code of the plug-in call data to the bottom of the page, and finally load. However, even if the final load, if the plug-in problems, the same will affect the opening of the Web page, the Web page is not completed when the user dragged the page may even let the browser stuck.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.