Website optimization first Step code optimization

Source: Internet
Author: User
Keywords Code optimization

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

Code optimization is an important part of website optimization, but it has not been paid attention to. Code optimization is the most basic and important.

Code optimization can effectively streamline the redundant code in the page, speed up the display of the page, improve the user experience and search engine friendly, in a word, code optimization is absolutely can not be ignored.

Code optimization, is the Web page of the HTML code corresponding to the Austrian administration, which is the most fundamental is the streamlining of code.

Usually, the Web page generated garbage code, including empty shells, empty statements.

This chapter mainly introduces the method of removing space.

For each line of code before the start of the white space characters, you can do this: Open Dreamweaver, select to code or split mode, press CTRL + A (or right-click the mouse to click "Select All") to choose all the code; use "shift until all spaces are removed."

For whitespace characters at the end of each line, you can use the Dreamweaver "replace" feature to clean:

(1) Open the Find and Replace dialog box

(2) "Look in" select "Current Document"

(3) "Search" select "Source Code"

(4) "Find" Fill ">" + a Space, both ">" (without quotes)

(5) "Replace" fill ">"

(6) Press "CTRL + a" or select "Replace All"

For an entire line of space, you can only manually remove the line.

Read here, do you 211.html "> find it troublesome to clean up the code?" Here, the author introduces a software: ADVANCED HTML OPTIMIZER This software not only can remove space, but also remove redundant tags. Of course, nothing can be perfect, the software will clear all "line", will seriously affect the possibility of the source code. Therefore, I recommend that you remove redundant code as much as possible.

This article from: http://www.qzonelove.com Copyright, reprint please indicate the source.

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.