On Wednesday 05 July 2006 11:25, Brad Rogers wrote:
> > If anyone has any ideas on how to optimize the HTML code, please let
> > me know.
> Have you looked at HTMLTidy? Available from SourceForge. Not really a
> code optimiser, but it can be of use for validation, and ensuring tags
> are opened and closed in the correct order, etc.
After that you still need to:
- Remove the "redundant" classes tidy puts to everything that
had had style options
- In the CSS, instead of using classes to identify things, bind as much
of the styles to the tags default style so that you can use e.g. <h1>
instead of <h1 class="navtitle">
- Remove all the end tags that can be removed. Using HTML 4 instead
of XHTML would help here, but purists might not like that :-)
Many hosting services support Server Side Includes, so having
in the report an option that makes the common page headers
and footers with SSI would save also a bit of space.
The links in the pages are very long:
If the HTML file names would use Gramps IDs instead of MD5 hashes,
they would be quite a bit shorter.
Some people might have quite large images (300dpi scans of docs...)
in their database, but it's not always so useful to have images at web in
their original size. So ,an option to restrict (scale) the size of the
copied images to either certain resolution (e.g. max 640x480) or number
of pixels would help too.