How to increase the page display speed

Source: Internet
Author: User

1, audio, video, image of weight loss. If not necessary, try not to use background music unless you are a website for some special entertainment classes. If you need to use the video display, it is best to make a single page of the video file, and then put a link on the home page, so that you can effectively reduce the main page capacity, improve the speed of the main page open. The image file is cut and compressed according to the need, and the quality is reduced under the premise of guaranteeing the effect. If handled properly, in almost no effect of the premise, can achieve overall capacity compression of more than 50%, to enhance the display speed is very good.

2, try to use div+css layout, avoid the use of table layout.

3, friendship links as far as possible using text rather than images.

4, some open speed relatively slow content, separate form into the bottom of the page. If you have a large chunk of content that needs to be placed in a table, try changing it to a few small tables. The background picture is too big to split, can also effectively enhance the Web page display speed, search on the internet "picture cutting" can find relevant software, more professional recommended Photoshop.

5, delete redundant code. This is the beginning of the page to lose weight. For example, some temporary use of interface functions, invalid links, error codes (such as redundant/div,/script, etc.), online also has a special tool for code optimization, you can go to some software download station search "Web page weight loss" and so on.

6, research, learning those code to do better, open faster page, is conducive to quickly improve the level of page optimization.

7, select the appropriate site source code. Efficient code inevitably brings efficient speed. Content Management system PHP use Dede Bar, no use, is said to be fast, code execution efficiency is very high. The ASP's wind flood, the science and flood These all are also good, the individual chooses according to the situation to be possible.

8, if you know some source code, you can optimize the statement, such as reducing the reading of the database, the page static, these are conducive to enhance the speed of Web page display.

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.