Effect of page code volume on SEO and optimization methods

Source: Internet
Author: User
Tags file size php tutorial

The effect of the size of the webpage code on seo tutorials and the optimization methods

So how much should the code size of a page be controlled?

This seems inconclusive. It is recommended that the page be controlled between 35 kB and KB. Of course, the smaller the page, the better. Let's clarify the concept of page size here. Some new seo users may ask, if the html source code of my page has 30 k, there are two images on the page, k and 80 k, respectively, there is also an externally referenced css tutorial file with a size of 15 kb. There is also a 2 MB audio file on the page. How large is the page size? Most people admit that the page size is 30 k. The page size is actually the source file size of the page. It is an html document output after server interpretation, excluding the php Tutorial language, asp tutorial, and other languages that have not been explained, it does not include flash, images, audio, and video files. It also does not include css or webpage special effect files that are called externally (if directly written in the page source code is not in this category. However, the page size analyzed by yslow, a Firefox plug-in, includes most of the above content. In fact, on the other hand, the image, external css, and webpage special effects should also be optimized.

Secondly, how large is the size of pages indexed and indexed by search engine spider? Different search engines have different processing capabilities, from over 100 k to several hundred k.

To reduce the size of a webpage, you can start from three aspects:

First, reduce the html size of the webpage. For example, you can change a website to a div + css structure to reduce redundant html code (such as formatting control code such as font and bgcolor on the page, in particular, we recommend that you use the Web Editing Super toolbox to clear the code in the format of word.) to accelerate the page display and reduce the page size, pay attention to the combination of css and table layout, reduce the use of nested tables to reduce the html size of webpages. At the same time, css and js are separated to external call files. html code is only used to display text content as much as possible. For long articles, pay attention to reasonable segmentation and paging.

Second, reduce the volume of other elements on the webpage. After the size of the webpage source file is optimized, we should also consider reducing the overall volume of the webpage, that is, the images, videos, audios, external css files, js files included in the page, flash animation and other files are optimized. We will not expand this point.

 

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.