How to improve the loading speed of Web pages by three points

Source: Internet
Author: User

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

Why do you want to increase the speed of Web page loading? User Experience Angle: Transposition think, if you go to visit a website, open a page, it is like "long-awaited start out, still hold pipa half cover", then, don't talk about the page content how good, the first impression on this page, that is the difference evaluation. Thus, over time, the site's bounce rate is high, PV has been on the not. SEO angle: Spider is also a user, spiders for each site crawl time is certain, how to enhance the number of sites included? Lifting the page load speed is the first step in optimization, because to make spiders in the limited number of crawls and time, as much as possible to crawl the site related directories, pages, have the opportunity to be included more pages.

How to improve the speed of Web page loading? Here, we do not consider the Web server, or virtual space access speed, and other hard factors. We consider from the site itself, do the following 3 points, enough to allow the site to load the speed of the page has a big upgrade!

Website code optimization

Code optimization can improve the download speed of Web pages, reduce the resources used by the server and improve the utilization of network bandwidth.

There are currently three ways to do this: clean up the garbage code; CSS optimization; JS optimization.

① common spam Code, spaces. removal, blank areas (spaces, tabs, line breaks, etc.) can be safely deleted.

②CSS optimization, CSS and page as far as possible separation, as far as possible using external calls.

③js optimization, using the bottom position plus external call mode optimization.

So far, Baidu search engine does not parse JS generated pages or content, JS code lengthy, execution efficiency far lower than HTML, resulting in Web pages will be very slow to open.

Second, the Web page gzip compression

To gzip not understand friend, hurriedly encyclopedia understand, this is an effortless and pleasing good things. Often text content most of the Web site, the Web page using gzip compression technology, the compression rate of the Web page can reach more than 75%, playing a popular analogy, such as 1G file is compressed into 200M, you said the Web page loading speed can not upgrade it!

So how do you compress a Web page with gzip? Friends interested in this, you can go to see About the Web page gzip compression Technical document "Use Mod_gzip and mod_deflate to compress the content of the Web page."

How can I detect if my Web site is enabled for gzip compression? Baidu a bit gzip compression detection tools, input their own web site, can be detected.

Third, the website picture optimization

When enabled, site code optimization, Web page gzip compression optimization, after the Web page loading speed will be significantly improved. At this time, we can optimize the site image, compressed picture size, for everyone to recommend a very practical good tool, compression effect is to ensure the quality of the picture, and then further compress the size, that is, "image optimizer." Not only can compress a single picture, you can also choose to bulk compression.

Summary: The above three ways to enhance the speed of Web page loading is feasible. When we are limited by the mainframe, limited by the virtual space, such as rigid constraints, optimization of these details can also let us benefit a lot. Article Original: Anime Net: http://www.mocartoon.com/anime net. Welcome Reprint!

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.