Did you lose your page in the hot summer?

Source: Internet
Author: User

Today is in the bright summer, it is a good opportunity to wear vests, short skirts, shorts and other "equipment" Big Show! Many people are busy slimming down, and whether you have prepared to "slim down" your pages. The so-called "slimming" of pages refers to the optimization of the structure and code of the pages on our site, rather than the compression of page files. Page slimming has always been a hot topic for webmasters. The vast majority of our practices are to remove redundant code. Today, I will share my experience in page slimming.

I. Page DIV + CSS Reconstruction

The biggest significance of page slimming is to remove junk code so that search engines can crawl our pages more smoothly and capture important content on the pages. The DIV + CSS framework page helps improve the compression speed and will be more friendly to search engine spider. However, as the page designer, we all know that div + css code will generate a large amount of CSS code, and this part of redundant code will hinder the crawling of the spider to a certain extent. Therefore, we need to save CSS separately when designing the page.

Ii. Reduction of JS script code

The bloated code on our page contains Viewstate generated by asp.net, unencapsulated JS code in the page, and page spam code automatically generated by other systems.

To solve this problem, if the page designer does not use some default templates or methods provided by asp.net, Viewstate can be cleared.

Iii. Page text slimming

If the page text content is too long, the visitor's page opening speed slows down, and the whole page cannot be set with tags, the visitor experience is greatly reduced. In this case, we usually choose to paging the article so that the length of each page cannot exceed 3 screens. This not only facilitates visitor friendly experience, but also provides great benefits for search engines.

Iv. Page image slimming

When we open a page, because the image file on the page is too large, it takes a long time to load. Once this time exceeds the acceptable range of our visitors, visitors will close the page. This is also true for search engines. When a search engine spider crawls a page image, it determines that the image is too large to crawl quickly, this image has no real value for the user, thus giving up crawling the image or lowering the rating for the website.

Therefore, when designing our website pages, we should not only pay attention to the quality of images, but also take into account the size of images to minimize the loading time it consumes.

5. FLASH slimming

When we perform page slimming, do not use Flash to reflect the key parts of the entire page, such as navigation, content, and links, or when we cannot avoid using flash, we can use an HTML-format website map. The specific operation is to add HTML-format links to the footer, add a link to the website map file at the link in HTML format, so that the search engine can better understand the overall structure of the site.

The above are the five points I shared about page slimming suggestions. I hope that this hot summer will help webmasters better slim down our site pages. The article by Ankang photography network http://www.shepeng.com/original, reproduced Please retain the source.

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.