Six strokes to help you improve the loading speed of the Web page to improve the user experience

Source: Internet
Author: User

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

We know that users do not like to use the Internet too much time waiting for the open page, the longer the waiting, the user will become more and more impatient, even when irritable will directly close the page, so you will lose some potential customers! Second, the ranking of keywords and the opening speed of the page also has a relationship, this mainly reflects the search engine on the user experience degree , the user experience is good, ranking relative to other sites is better, so I think 11545.html "> We need to improve the opening speed of the Web page, this does not need too much cost input, only need to pay attention to some small skills on the line!" Here are some tips for you:

1. Optimize CSS. We know that the appearance of CSS, so that the content and elements of the performance method of separation, the user opened the Web page with CSS design, CSS is generally downloaded users of the local computer, unlike the HTML element performance tag, each Web page will be called once, using CSS, only need one time! In addition, CSS in some places can replace the picture, which is why now advocate Div! However, using DW to write CSS, there will be some extra CSS code. CSS is too bloated, it will also affect the speed of the Web page, here is a tool cleancss for everyone to try, it is an online tool. The other is to hand-streamline the code, this does have this for beginners is indeed difficult, but, look at some of the simplified CSS skills of the article will help you, see more, also know that the code can be streamlined.

2. Optimize the picture. This is not a trick, through the software is done. I like to use PS, in PS, choose the format used to store the Web, and then choose the quality of the pictures and other options, the picture looks very clear, size and appropriate to save it.

3. Picture format problem. It is important to choose the correct picture format. JPG is generally used in photos or True color pictures, gif use flat color pictures, generally used for buttons or logo pictures, PNG and gif very similar, but is more support for some colors!

4. Picture long width marking problem. This problem is generally seen in HTML, some people often forget to write the picture long and wide. These tags are to tell the browser to open the picture before the size of the browser to load the page will retain an area, speed up the entire page display speed.

5. In the URL to learn to use "/". When a user opens a URL that is not followed by "/", the server will determine what type of file or Web page, then you add a "/" behind the URL, then the server will know is a directory page, reduce loading time.

6. Reduce the number of responses to Web pages. The opening of the Web page, in fact, is a very complex process. From the Web application open, to the Web server response, compile, and so on, and then send back to the browser, before showing us the text and pictures, multimedia files and so on. So I'm going to try to reduce the number of responses, and now Ajax is doing well in this area. Of course, a static page is an exception, static pages pay more attention to the size of the picture and web design on the line.

This article source: www.bobaiyou5.com

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.