9 Tips Page Quick Weight loss

Source: Internet
Author: User
Tags format blank page
Even if the site content is very good, but if the visit is very slow, I believe that there will not be many people waiting patiently.

For web designers, the Web site's access speed is even more important than the content. Even if the site content is very good, but if the visit is very slow, I believe that there will not be many people waiting patiently. Here are some web teaching network tried the site to lose weight method, the effect is not bad, I hope in the future design site can pay more attention to the following items.

1: Use gzip compressed document: Gzip encoding is used to improve the performance of the Web page, not only can reduce storage space, but also reduce the time required for transmission. Using gzip compression for files in a Web site can significantly increase the speed of Web page loading, while also reducing the bandwidth consumption of the site. (using this method can add to the burden on your server because you need to modify the server configuration and not be operational for virtual host users.) )

2:CSS Compression Weight Loss tool http://www.xland.com.cn/css/geshihuacss.htm
Copy your site CSS code into this box, click on the compression, the general can be compressed 1-5k CSS.

3: Lose weight to JavaScript files: This method is different from gzip compression, there are many ways to shrink JavaScript documents, here is recommended to use JS online weight loss site:http://javascriptcompressor.com/

4: Place the style sheet file on an external call: Place the JavaScript and CSS style sheet files you need on the page in a different folder so that you can cache the calls when you open the other pages of the site, speeding up the load on your site pages.

5: Website pictures use GIF format as much as possible. GIF format pictures occupy a small space, such as my web page teaching screen illustrations, JPG images generally in between 10-50k, and GIF format pictures are generally below 10K.

6: Try not to call on the front page too large flash files and video files.

7: Avoid using Web redirects: Whether through the server side orientation or through JavaScript code for content redirection, the site will first load a blank page, and then directed to another page, which not only prolongs the load time of the page, but also very likely to lead to a jump, so that users face a "Blank" page.

8: Put the statistics code to the bottom of the website: do not and page content in a table or div tag. You can place the statistic code directly at the bottom of the page code, or make a table or div to place the counter separately. In this way, the speed of your website will not be affected when the counter is inaccessible.

9. Website Test speed website http://loadimpact.com

In the text box, enter the URL to test the site webjx.com, and then click the Start Test button to start testing the speed of the site. Wait a while, you can count out the loading site of some detailed loading data. Including the overall loading and standing pictures as well as JavaScript, CSS and other code load. You can select a different file on the right-hand list to compare the loading data of up to three objects at the same time. And in the Loadimpact Web site can also generate a chart display, to facilitate our analysis. By generating the data, you will know where the bottleneck of your Web site speed, so as to further solve the problem.



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.