Speed Up website access

Source: Internet
Author: User

First, the use of div+ in the website programCSS in this mode without table current div+CSS is the mainstream programming language, which is inseparable from the advantages of small size loading fast. This model is also used by mainstream websites and CMS. It is recommended that you also use this model for programming, rather than using the original table structure. The table structure not only manages inconvenient, the webpage volume also will become big, reduces the website loading speed. Second, using GZIP technology to compress the Web page compression using gzip technology is a good way to reduce the volume of web pages. In general, this is the need for your website space support, such as I use the A5 of the co-rental host, compression rate can reach%. The page size is small, the natural loading speed is fast. Third, reduce the number and volume of CSS files in the use of Div+CSS files are very important in the process of CSS. If you have multiple CSS files during the authoring process, it is recommended that you merge multiple CSS files to speed up your site loading. In addition, you can use the professional web weight loss software to reduce the CSS file weight, to decrease the size of the CSS file. Iv. Use CDN acceleration. Nearly a year CDN has been in our personal webmaster hear more, there are many friends in use. The full name of the CDN is the Content Delivery network, which is interpreted as the contents distribution networks. The principle of thinking is to avoid the internet on the possible impact on the speed and stability of data transmission bottlenecks and links, so that content transmission faster and more stable. That is, the website accelerator, this need to pay to use, free is not too stable. Five, optimize the code, reduce the bloated structure. If we use the more popular CMS this convenience should not have a bloated code structure exists, but it should be noted that when we make or choose the site template, there will be unreasonable structure. We need to write templates or programs to use a more concise framework of the program, simple and conducive to user experience, but also more conducive to search engine spiders crawling and crawling. Vi. reduce the size and number of pictures. We try to upload pictures of the site to reduce the size and size of the image, you can upload pictures before the image compression processing, the image of the appropriate size, not too big. The image is just the dot of the website, and it doesn't have to be graphic. At the same time, we try to avoid the use of a large number of video or audio content. Vii. reduce JavaScript script files, as far as possible in a file. As far as possible external calls JS code, do not put in the Web page, not to remotely invoke the external JS code. For example, Google recommends that you load the analysis in the head tag. You can also try to combine the JavaScript and compress them to load faster. Sometimes we have too much css,js code in the head, which causes the intermediate content to load too slowly. So try to reduce the head code. Eight, the use of static HTML page is well known, ASP, PHP, JSP and other order to complete the static interaction of Web page information, the operation is really very convenient, because of their good data interactivity, can easily access, change the contents of the database, but this sort of order also has my flaws, That is, it must be effective Laure to HTML page, and then in the "transfer" to the user, a step that will inevitably affect the site's visit speed, so I suggest that in the beginning of the new station, in my site's important investigation period or the use of static HTML page comparison insurance. Nine, the ASP, aspx, PHP and other files to the access to. JS reference this in the ASP, ASPX, PHP and other programming should be noted, if you want to embed dynamic Data in static HTML pages, and these dynamic data is provided by ASP, PHP and other programs to provide, The following statement is used: In this case, each time there is aPeople visit your website, the server will execute and process a network_index.asp file, extract the corresponding data from the database, and then output to the Web page display, if there are tens of thousands of people at the same time access, it will be executed tens of thousands of times, the consequences can be imagined. It is recommended that the data be dynamically generated in these programs into a network_index.js file, and then on the home page through

Speed Up website access

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.