test my html optimization script

  • michalczyk
  • Newbie
  • Newbie
  • michalczyk
  • Posts: 10

Post 3+ Months Ago

Hi there,

I wrote a script that optimizes html files. Here are its options:

-r, replace the input file, default output is stdo
-d, convert DOS to Unix endline (remove CR)
-t, remove empty space between > and < (end and begin tag indicators)
-o, put all html content on one line (remove LF)
-s, remove leading spaces and tabs
-p, remove trailing spaces and tabs
-b, remove blank lines and lines containing only spaces or tabs
-c <n>, compact text, fold text at line <n> width
-v, verbose
-m, manual
-h, usage and options (help)
-l, see this script

What other options do you think would be useful? Here is the script: http://comp.eonworks.com/scripts/htmloptim

more linux scripts
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1853

Post 3+ Months Ago

-i, find the page's images and run pngout on them, because that's the only optimisation that will really matter.
  • michalczyk
  • Newbie
  • Newbie
  • michalczyk
  • Posts: 10

Post 3+ Months Ago

I already wrote a script that does png optimization, it's called pngoptim - you can find it on my site.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 62 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.