Categories > TinyButStrong general >

Optimization

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: RwD
Date: 2004-06-08
Time: 21:50

Optimization

Another thing from the forum...

Can tbs optimize the html code so useless characters and stuff are stripped? Like double spaces outside pre tags. Everything that won't affect the display in the browser...

I don't recall such a function, but I believe it would be a handy addition for people who would want that. I noticed for example that tbs leaves empty lines where tbs tags used to be......
By: Skrol29
Date: 2004-06-09
Time: 01:35

Re: Optimization

Hummm...
A kind of CleanHtml() method is certainly a good idea, but I can imagine it may be hard to code.

Double spaces can be droped in Html code (except <per> tags), but not in Javascript code. Javascript can be in headers but also in Html tag attributes. This is complicated.