Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall
Due to industry specificity, the small and medium-sized Enterprise website construction and Web site production and other special concerns, but also often analyze the SME website. Realistically speaking, many of the company's website construction really dare not compliment. And Mo said that the page design is exquisite, whether is shoddy, simply is the website opens the speed, already lets the person be unable to endure. This naturally has the server running quality factor, but more is the programming unreasonable, or the website design itself has applied too many high-precision picture and the animation to cause. Slow loading of the site, not only affect the user experience, but also to search spiders crawl Web pages to create obstacles.
From the user experience and optimization perspective, the site "slimming" reason and purpose is two. One is based on the user experience, simple and clean code specifications of the site to open the speed will be greatly improved, and this is what the visitors expect. General users in the search for products or services, will be through the search engine at the same time to open two or three of sites, and fast-loading sites will undoubtedly be preconceived, give viewers a good impression, under the same conditions to increase potential customers into a single opportunity. From the point of view of the search engine, it certainly also wants the website to load fast, because this can save Spider's crawl time, improve search engine's retrieval and compare to processing efficiency. You know, search spiders crawling along the link, every day to deal with a huge amount of data, every minute for it is extremely important. There is also a need for special changes to explain that the search spider on the site to open speed is also "patience" limit, if a site has been stagnant for a long time can not fully load, will give up. If a website repeatedly by the search engine to give up, then the site will naturally also slowly affect the weight of the site and rankings.
So how to implement the "slimming" program in the website construction? You can try to start with the following five aspects.
Standard code, safe, fast and concise
In terms of code, Web site loading speed is generally two points. One is code coding is not standard, now many Web sites are using dynamic scripting program, through reading and writing database to ensure that users can edit the content of the site. But it is because of the existence of dynamic scripting language, a large number of judgments, loops, the wide application of conditional statements, as well as the frequent read-write link database, brings the risk of slowing down the loading speed of the site. The typical is to open the database forgot to close, the data loop after the end of the statement, resulting in a dead loop and so on.
There are also slow search engine loading speed because of the use of a large number of nested tables. For layout and typesetting convenience, many program staff prefer to use table instead of Div to do the layout, because relative to the div ranking, table method is much simpler. This approach for simple content of the general small Web site is also good, the content of a little bit of its disadvantage slowly exposed, and affect the loading speed. Many programmers are no longer willing to write code in order to be quick and easy, before the WYSIWYG programming tool, such as Dreamweaver. But the tool generated code, in fact, many are not necessary, to a certain extent also slowed the speed of the site load.
Second, reasonable use of drawings to ensure quality and ensure speed
For web design, no picture will be very stiff, the entire page has no vitality. And the large use of pictures, and will slow down the site loading speed, bring an unsatisfactory search engine and experience. In the website design and the use of pictures, to ensure that reasonable, can use the color block as much as possible to use code to generate color block instead. Relative to the printing, web browsing to the picture requirements is not high, as long as the resolution to achieve 72dpi can fully meet the display needs. The general picture, as long as handled properly can generally control under 100Kb, and some small icons even a few bytes.
As with the picture, the animation is as small as possible, let alone flash animation whole station. Because it is extremely harmful to search engine optimization, the reason is very simple, search engine can not identify or say not very good to identify the animation content, but only silly understanding of the text. Animations generally take a while to load, and in the process of animation loading, perhaps your customers have quietly closed the site, select other peers. If you have to use animation on the site, it is also recommended to use just one banner, part of the relevant text, or as much as possible. This will not only increase the speed of Web site loading, the same is conducive to the search for the production of crawling.
Third, careful use of special effects, not because of the effect of slow speed
Some special effects can greatly improve the beauty of the site, such as some of the latest jquery effects. And from the user experience point of view, some such as Ajax without refreshing technology, but also to a certain extent to enhance the speed of Web site loading. But unfortunately, search engines are not better identified. In the search engine has been accepted today, to know that more than 90% of netizens are through search engines to retrieve carefully needed information. So the website construction, nature cannot neglect the importance of the search engine. At the beginning of the Web site planning process, it is necessary to deeply consider their preparation to use the technology, whether the search engine friendly.
Many special effects can bring dazzling effects, but they also consume a lot of resources. And do not say a JS special effect, if a Web site on three places at the same time scrolling marquee scrolling, the page load will be dragged to very slow. In the process of website design, must give full consideration, a website without special effects, such flat Web page will not have too much attraction; Similarly, a website can not have too many special effects, although the effect is good, but if the slow loading speed, how to show it?
Site slimming also should be some JS code, CSS documents and some commonly used documents, to be categorized to different files below, when used to call, this is a Web page to reduce the volume of good practice. Generally speaking, the larger the HTML code of a page document, the longer the load time is, the more unfavorable the user experience and search spider crawling. Plus the picture of the page itself animation, and so may be time to load, reasonable page size, should be controlled under 100Kb. This article by the professional website construction production company, Shanghai Pilotage Technology (www.joyweb.net.cn) Integration viewpoint Original, more splendid content we will continue to launch.