Optimize your HTML using Expression Web
Optimize your HTML using Expression Web is pretty simple. I do it to all my files because it's a great way to save bandwidth and also helps a tiny bit on the user's end.
So here we have a screenshot of an HTML document that's standard formatted on Microsoft Expression Web 4. This file is 729 bytes when not optimized.
So now where going to optimize the HTML document. You can right click on the editor screen and select Optimize HTML... the following pop-up will appear:
Check-mark everything and click OK, you should end up with a 1 line HTML file, I know it looks very compressed but that's how it should look!
This file is 672 bytes when optimized which is 57 bytes less than the original un-optimized document. Sure this may not be a big deal to some people, but when you get large amounts of traffic it tends to help. Remember that this is just a 30 line HTML document, I have optimized documents that have well over 300 lines and it truly helps not only on bandwidth but I do notice the site loads faster as well.
Why would I go through this trouble, I can't read a darn thing?
The reason why we format our HTML code is so that it's easily read by us web developers. No worries! I suggest either saving a formatted version on your computer so when you need to edit files you do it there and then have it optimized, OR! you can reformat the optimized HTML using the reformat html tool provided in Expression Web 4 then edit what you need to do and re-optimize it.