Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 606153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:13:26+00:00 2026-05-13T17:13:26+00:00

I have a few hand-crafted web pages. When deploying them I would like to

  • 0

I have a few hand-crafted web pages. When deploying them I would like to run them through a tool so that new smaller HTML files are created, with extraneous whitespace taken out, etc.

We already use YUICompressor for our Javascript and our CSS, and we tend to follow all of the techniques described by the Yahoo performance team.

Is there a good, free tool that does this? I prefer tools that would fit into our deployment process similarly to YUICompressor.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:13:27+00:00Added an answer on May 13, 2026 at 5:13 pm

    HTML Tidy does the job.

    I use the following on one document that I generate (a rather large one). This saved me about 10% on the post-gzip size.

    tidy -c -omit -ashtml -utf8 --doctype strict \
        --drop-proprietary-attributes yes --output-bom no \
        --wrap 0  source.html > target.html
    
    • -c — Replace surplus presentational tags and attributes
    • -omit — Drop optional end tags
    • -ashtml — use HTML rather than XHTML (HTML is leaner and XHTML provides no benefits for most use cases)
    • -utf8 — So we don’t have to use entities for characters outside the character set (entities are more bytes)
    • --doctype strict — use Strict (again, leaner)
    • --drop-proprietary-attributes yes — get rid of proprietary junk
    • --output-bom no — BOMs cause issues in some clients
    • --wrap 0 — Have very long lines
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few lines of PowerShell code that I would like to use
I have a new web app that is packaged as a WAR as part
I have few different applications among which I'd like to share a C# enum.
I have a few Visual Studio Solutions/Projects that are being worked on in my
We have a few projects that involve building an application that is composed of
I have a Silverlight application that I am working on. I have a few
I run a game and the running is done by hand, I have a
I’ve been working on a few small scale Access projects that have turned large
After working in good ole' c++ all day, I like to have a few
I have few asynchronous tasks running and I need to wait until at least

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.