Web page acceleration series (II): Structure of web pages accelerated by web pages

Source: Internet
Author: User

(2) webpage Structure

The structure of a webpage has a great impact on the loading speed of the webpage!

1. About the Framework Structure

In general, try to avoid using the framework structure, because the browser must request each page in the framework separately! This will inevitably increase the burden on the server. In addition, browsers currently used by a few users do not support frame structure display. Of course, in some places, the framework structure is still very convenient, such as chat rooms, forums,CommunitySoftware Download.

2. About the table

The application of a table is not only limited to, but also plays a very important role in the entire layout of a webpage when listing some content. In order to make a large amount of content arranged on the webpage well organized, the webpage is usually divided by no border, and then different content is placed in different cells. There are some tips for using tables: First, try to avoid using tables with complex structures. Because tables with complex structures may refresh the tables multiple times in the browser. Secondly, when a table can be divided into two or more tables, it should be divided into two, because the browser only reads the entire table and then outputs the display. If the table contains a lot of content, during the loading process, the browser will remain blank until the table is read. Finally, table nesting should not exceed three layers. If there are too many layers, the browser will process the table structure when loading the table.
 

The home page of Sina is a good example. You can save it and edit the software to open it and view its structure. Skillful Use of tables is required to make beautiful web pages!

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.