Eight suggestions for website construction

Source: Internet
Author: User

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

Remember to help the page to lose weight

Browsing the Web page actually downloads the contents of the Web page from the virtual host to the local hard drive, and then explains the view in the browser. Download the speed of the page in the display rate accounted for a large proportion, so the page itself occupies a smaller space, then the faster browsing speed. This requires: Do not use too large flash animation, pictures and other resources. A clean, concise page gives a sense of clarity.

Second, try to use static HTML page

ASP, PHP, JSP and other programs to achieve the dynamic Interactive Web page information, it is very convenient to run, because they have good data interaction, can easily access, change the contents of the database, so that the site "move", but this kind of program must first be processed by the server, generate HTML page, and then "send" Browsing to the client, this has to consume a certain amount of server resources. If you use this kind of program on a virtual host too much, the Web page display speed is certainly slow, so please try to use static HTML page.

Three do not plug the entire page content into a table

Many webmaster in order to pursue the page unified alignment, the entire content of the page into a table (table), and then by the cell TD to divide the layout of each "block", the display speed of this site is absolutely slow. Because the table to wait for all the contents are loaded after the display, the correct approach is: the content of the partition to a few have the same pattern of the table, not all stuffed into a table.

Four will change the ASP, ASPX, PHP and other files access to. js Reference

If you want to embed dynamic data in a static HTML page, and these dynamic data is provided by programs such as ASP, PHP, and so on, each time a person visits your site, The server will execute and process a tongji.asp file, extract the corresponding data from the database, and then output to the Web page display, if tens of thousands of people visit at the same time, it is necessary to perform tens of thousands of times, the consequences can be imagined. It is recommended that the data be dynamically generated into a 1.js file in these programs, and then on the home page via < SCRIPT src=. /.. /"http://www.aaa.com/your JS file specific name" ></script> in this way, the task of data display to the client browser to do, will not consume the resources of the server, the speed of natural quickly!

Five nested another page using an IFRAME

You want to insert some advertising code on the homepage of the website, and do not want to let these advertising website influence speed, then, the use of IFRAME is the most suitable.

Six tips on site counter code placement

Placing counters in a Web page can be used to count the access traffic for AdSense and advertisers to provide access to the basis, to improve the speed of the site, we must pay attention to the location of the statistics code, the correct way is: Put the statistics code to the bottom of the page, and not the page content with a table or div tag. You can place the statistic code directly at the bottom of the page code, or make a table or div to place the counter separately. In this way, the speed of your website will not be affected when the counter is inaccessible.

Seven Links of Learning

Links between the site can increase the publicity of the site, do logo picture links More accurate description of the theme of the site and positioning, publicity will be greatly enhanced, but the picture links do too much, will inevitably affect the speed of the page display. Therefore, the friendship link should try to do:

1, only do text links: Do text links will not delay the speed of the Web page.

2, put all the links to a separate page, and then in the first link on the page.

3, if the link must appear in the home page, please put the entire table of the link to the bottom of the pages, because the page is displayed from top to bottom line by row, put it to the bottom of the page, will not delay the display of other content.

4, the logo pictures of the link to download and then upload to their own web space, so that the speed of their own web site space decisions and not affected by the friendship site.

Eight web site space selection

When choosing a Web site space, we suggest that you use two-line space, which can avoid the delay caused by network problems when other users visit the website.

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.