Optimize source code of a site and web page in Expression Web

With code optimizing options in Microsoft Expression Web you can remove unnecessary code from your web pages. This helps you keep your code clean and also reduces the size of your files which in turn affects the loading time of the page. You can choose when to optimize your pages. If you optimize your code when you publish your local site to a remote site, then these changes will affect only the remote site where you publish your local site, the local copy remains unaffected.

NOTE: You have to publish your site after you optimize the code options for them to take effect.

Expression Web has different Code Optimization options designed for authoring web pages and for publishing pages. You can optimize a single page as well as entire website.

To optimize the source code of a single page

1. In any of the views, go to Tools > Optimize HTML…

image

2. In the Optimize HTML dialog box, choose the items you want to remove from the page.

3. If you want to restore the settings to their defaults, choose Restore Defaults.

To optimize the source code of a website

1. In the Publishing view, select Publishing settings or go to Site > Publishing settings.

2. On the Publishing tab, select the option – ‘Optimize HTML during publishing’.

image

3. Click Customize to launch the HTML Optimization Settings dialog box.

4. Then choose the items you want to be removed from the page.

5. You can set these options as default with ‘Set as default’ or ‘Restore Defaults’.

Filed Under: Expression Web

Tags:

About the Author: Minal is a freelance web and graphics designer. She specializes in designing Logos, Stationery, Graphics and Icons as well as website templates using graphical tools like Photoshop, Illustrator and Expression Web. Twitter @saffronstroke

RSSComments (0)

Trackback URL

Leave a Reply