Some tips to improve the speed of your Web page

Source: Internet
Author: User
Keywords We
Tags .url browser close code customers internet internet + it is

Absrtact: We know that users do not like to use too much time to wait for the Web page open, waiting for the longer, 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 keyword ranking and

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 is also related to this mainly embodies the search engine on the user experience, user experience, ranking relative to other sites are better, so I think 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 to refer to:

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, the CSS in some places can replace the picture, which is why now advocate div reason! However, the use of 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.