Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Today, I met a customer, said the site of the two days to become very slow, so specifically diagnosed a bit, found to be an advertising code caused, I think it is necessary to share some of the tips to improve the loading of web pages.
The same server, the same set parameters, but some is fast, this is why? This is because of an excellent code-adding habit and a Web layout architecture.
1, the entire website source code must conform to the standard of the World Wide Web. Someone asked, this is why, very simple reason, because all browsers are based on the standards of the Web page interpretation, if your Web page does not conform to the standards of the Internet, even if there is no double quotes for href, the browser will take extra time to analyze. Verify Address: http://validator.w3.org/
2, CSS writing note. Here is only one place to note, is a style do not use a multi-level selector, such as a span of the style of writing, you can be a. Div1 ul1 Li Span.sp1, or. DIV1 SP1, You can also direct. SP1, we choose which, of course, is the third, the same, this can also greatly save the browser to deal with the Web page time, there are many sites for convenience, many different locations are used. SP1 name, resulting in bad changes, so it will take a long time to come.
3, Div. Here is not to say, that is not recommended to use table table to layout, but also do not abuse Div, abuse div is absolutely no benefit, so the search engine can not determine your content structure.
4, the advertisement adds the question. From the point of view of the Web page load, put the ads in the frame page, is the best way, but this will affect SEO optimization, so generally are placed in JS. We suggest that as long as it is an advertising code, all in JS. JS seems to have a load level problem, that is, JS and Web page source code peer, is based on the page layout has been sequentially loaded (if your ads slow to load the tragedy), but JS inside the JS may be delayed loading. This approach is also designed to prevent multiple calls on a page with the same JS file (which is always the case for inserting multiple ad federation codes), which greatly affects the loading of the Web page.
The use of JS delay loading technology is also good
5. It is not recommended to put a dynamic paging file without caching in the page, even more tragic to do the database query, I admit that the search for a film and television program landing box and update statistics are the tragedy of the cup (to this point, you know how to do), in short, it is worth your lesson.
6, a mentality problem. Don't try to get your page to display as much content as possible, if you have this idea, your page only needs two pages on it, a homepage, a play page. The content is more slow to load, but it is bad for the customer experience.
Let's say:
I came to your website, what was the first? is the page open speed; Is there a window?
If I were a purposeful visitor, I would definitely search the film directly.
What would I see if I was a visitor without a purpose? What is the hottest movie right now, what videos are recommended to me, and what do I care about all your classified updates? No, no! What do you mean by the switch of n options?
Perhaps you look at TOM365, one by one, the first theater, everyone see these sites know, FLASH, switch are clouds!
My Site Www.xhyidc.com is a series of optimized processing, we can see how fast.
If you think a small website should take the unconventional route, I have no opinion!