Site Diagnostics--Problems with site code

Source: Internet
Author: User
Keywords Code optimization Website diagnostics

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Most of the time we do the purpose of the site diagnosis, we are in the site optimization of a series of big and small problems. Because SEO is a comprehensive work, we need to know a lot of SEO technical details, but also need unremitting efforts. Therefore, in the presence of anomalies, we need to conduct a full range of diagnostic analysis of the site inside and outside. The site's internal diagnostics are inseparable from the site's code diagnostics. 37 Network to tell you about the problem of code diagnostics, to see what we have on the site of the code on the problem:

First is the layout problem, look at this picture below. Slightly understand the code SEO or webmaster know, this is table layout, and many of us also know that in the site Optimization div layout is far better than the table layout. Because Div and CSS code is stored separately, the structure is clear, download faster, but also conducive to modification, is inherently conducive to site optimization. While the table layout, although the compatibility is good, can avoid layout collapse, but in the user view, increased page browsing speed, open slower, but also to search engine Analysis page content added difficulty.

Code location problem. As the figure shows, we can see that a lot of CSS code and JavaScript code are written directly into the HTML, and that, because the DIV and CSS code are stored separately for optimization, because most of the HTML code and styles are written to the CSS file, This makes the body part of the Web page more prominent, which is easy to be collected by search engines. But it's obviously not a good way to write directly to HTML.

If you have a large number of CSS and JS code, you should consider writing them to the external file (such as the CSS suffix file and js as the suffix of the file), and then through the external link to call the CSS code file or JS code file, here to 37 network as an example of the detailed method of invocation:

And put them in the HTML file.

Unwanted pictures and flash. Here said the useless pictures and flash not only included in the HTML error pictures and Flash, but also include unfavorable, not in line with the SEO pictures and Flash code, the following figure, perhaps the picture here is decorative role, but for SEO, it does not meet the site optimization norms. Many sites have this problem, the use of a large number of pictures, icons and flash decoration pages, dazzling so that the core content of the site.

A large number of JavaScript calls

In fact, a large number of JS code and a large number of CSS code, 37 of the network all recommend the use of external call file encapsulation. A large number of JavaScript easily lead to search engine crawl difficult, because the current technology, spiders do not recognize the JS code, but will affect the experience of the site. Like the following figure, this site uses a lot of JS effects and effects, but also directly into the HTML, which leads to the site code is particularly bloated.

Spam code issues. This is an essential task for code optimization. The appearance of garbage code is unfamiliar to the code, on the other hand is the editor and automatically generated, there is often a bad operating habits, such as the image of a large number of redundant code, where the redundant style is basically invalid, where the garbage code may be from other sites or word directly from the paste in the resulting So learn to standardize the operation, learn to reduce the extra code in the site.

The code problems that are not conducive to site optimization are not just those, but there are other problems. 37 network, whether it is to build a station or optimize maintenance, to use concise code, although the code diagnostics a bit complicated and troublesome, but we are in the site to diagnose, this point can not be overlooked. On the one hand to ensure the correctness of the code, on the other hand, pay attention to the normative code. Because we are not only to the search engine to see, more importantly, to the user to see, although you argue that users do not look at the code, but the incorrect code may lead to Web site functionality or security issues, code is not standardized can lead to browsing exceptions, incompatibilities, layout confusion and other user experience problems, you said the site code of these problems you can not ignore it? Original 37 network-website Diagnosis, website analysis, optimization diagnosis http://www.37web.net/alzs/showimg49.html reprint Please indicate the source, thank you.

Related Article

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.