Practical skills: Small Bandwidth server Web site optimization loading speed method

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Now with the giant into the server services market, can be said to the owners of the choice of more and more, before the small webmaster may only to rent some virtual host, if you can use a small memory of the VPS will be considered to be willing to the money. And now may only pay before the price of ordinary virtual host can get a cloud server, such as Aliyun, Tencent Cloud and so on the lowest price of only 500 yuan a year.

For many small stationmaster although already can use some cloud server, but the related configuration is some foundation, for example the memory is below 2GB, the bandwidth is generally 1-3m. In this case, even if our environment is properly configured, but because of the small bandwidth will still feel the speed of their own site is not too much power. I do the Western Digital agent has customers bought cloud server, and even think Cloud server is not as good as the original virtual host. In fact, the first load of the home page, such as the small bandwidth of the cloud server is really inferior to the virtual host, although the virtual host has a variety of resource constraints, but the machine tool bandwidth is generally on the hundred trillion, so the virtual host instantaneous speed can indeed perform very well.

But the reality is that a lot of small webmaster in their own budget to do the site to start some small bandwidth of the server, and do not want to return to use the status of the virtual host, because bandwidth costs are often particularly high, but also the higher the corresponding cost increase rate is also high. And today we share some small tips:

First, Chettu, enable page compression, optimize CSS and other conventional practices.

These practices are not only our optimization of small server loading speed, but also many large web site applications, such as the cut map can reduce the total file size of the page picture, but also reduce a large number of HTTP requests. There are also optimized CSS such as multiple tags reuse the same attributes, that is, when writing CSS is not a page to write, but from the overall consideration of writing CSS, which can greatly reduce the size of the CSS file. Of course there are many other ways, such as enabling gzip page compression, picture split screen delay loading and so on. These commonly used methods I have been grouped here, no longer to explain in detail.

Second, the supply of resources, 8207.html "> Holding group heating."

For many webmaster, their website visitors are not particularly high, many times not every second have users to the homepage of the site to load. So we can use each other, because for many sites, the biggest load speed problem is the home page, such as discuz such a program as long as the home page all loaded, the other pages loaded up very quickly, because the home page has been the public part of JS and CSS files loaded to the local. And some of our sites need to do some big banner pictures, and these pictures may occupy the largest volume on the home page, and may sometimes reach several megabytes. At this point, we can completely separate these images into different partners, for example, the home page of A's big picture can be put to B, C, D, and so on different people's servers inside, the reason to choose such a picture to put in other people there, is because the technical difficulty of doing the least is the safest, even if not with the other side of the cooperation , you can easily switch references to resources on other paths.

Third, hug the giant thigh, make the website become more brisk.

Now in fact, there are a lot of specialized to provide a breakdown of file type storage service providers, such as specialized in image storage, there may be said that the price of those services more expensive, so as to enhance their own server bandwidth. But I'm not here to ask you to put all the pictures on these services like those tyrants, and put some particularly large portions there to store and then call on your own site. If you don't want to go out with this money, also good, in fact there are many free to use, but those who need to master some skills, as for these skills can be searched on the internet, such as Sina Weibo's transfer map function can be applied to our small Bandwidth Server website home page image storage, In addition, there are more free resources.

Four, the main body of the new addition of JS and CSS compression.

Here said the compression is not to do gzip, such as compression, but to write code to confirm the application when compression, of course, it is recommended to compress the backup before compression. Friends who know jquery know that this open source framework has a compressed version and uncompressed version, the former we are usually directly loaded onto the Web page, the latter is mainly for people who understand technology to do two development, while the former volume is much smaller than the latter, ordinary JS and CSS is the same truth. And this process not only reduces the volume, but also increase the malicious copying of our front-end effect of the cost of plagiarism, why not?

I said these points, in addition to the 1th, other than the other is not often mentioned, and therefore is often overlooked objects, and actually these points are only a little time cost, but can achieve very good results. This even if the homepage of our website is a relatively large volume of the Web page, even if we are using a small bandwidth of the service is no longer worried about the load will not come out for a long time, this can greatly improve the user experience Oh.

This article source: Http://www.zgwen.net (by the Western Digital agent China steady Speed original, reprint please specify the source!)

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.