Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall
More than 3 seconds to open the page, then 80% of the visitors will leave, so how to improve the speed of the Web page is a very worthwhile topic. Why some Web sites open fast, some sites are slow to open the page, a large part of the reason is the site to lose weight, code optimization.
If you want the page to open fast, then you need the page as small as possible, in the premise of guaranteeing content, the site needs to lose weight, the following will give you talk about the site weight loss method.
Web page weight loss in several steps:
1, 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.
2, 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.
3. 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.
4, audio, video, image 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.
5, some open speed relatively slow content, separate form into the bottom of the page. If a large chunk of content needs to be placed in a table, try to change it to a few small tables. Background image is too large 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.
6, try to use div layout, avoid the use of table layout.
7, friendship links as far as possible using text rather than images.
7, research, learning those code to do better, open faster page, is conducive to quickly improve the level of page optimization.
The above is just I in the process of optimizing the page code a little experience, with you to do some sharing.
This article by not fat weight loss net www.bupangla.com friendship feeds, reprint please keep RELATED LINKS!