Re: Size optimization of a HTML document

From: Matt Morgan (minxmertzmomo_at_gmail.com)
Date: 11/29/05

  • Next message: Craig White: "Re: Network Perfomance"
    Date: Tue, 29 Nov 2005 10:28:00 -0500
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    On 11/29/05, Paul Smith <phhs80@gmail.com> wrote:
    > On 11/29/05, Andy Pieters <mailings@vlaamse-kern.com> wrote:
    > > > Is there some way of optimize the size of a HTML document?
    > >
    > > There are MANY ways to optimize the size of a html document.
    > >
    > > One thing to note is that if you manually make the html document, that it
    > > might quickly become a burden.
    > >
    > > If you are following current standards, you already seperated content from
    > > layout so all your stylesheets and javascripts are already external
    > > references.
    > >
    > > That said, it is perfectly legal to strip *all* line breaks from the document
    > > (I DO mean linebreaks and not <br>'s)
    > >
    > > Also, since html collapses whitespaces you can remove all sequences where
    > > there is more then one whitespace.
    > >
    > > Example (the _ denotes whitespace)
    > >
    > > <p>This_is_a__________sentence</p>
    > >
    > > In this example all the whitespace between a and sentence can be converted to
    > > a single one, since it will be treated that way by the html parser.
    > >
    > > Keep in mind that if you later have to edit the document manually, things will
    > > be more difficult for you because the linebreaks are to make the source more
    > > human readable.
    > >
    > > With kind regards
    >
    > Thanks, Andy. To edit HTML documents, I use nvu. However, after having
    > removed some links, the document stays with the same size. I
    > understand your strategy, but is there some automatic way of doing
    > that? I mean a program to automatically optimize the size of a HTML
    > document.

    HTML Tidy?

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Craig White: "Re: Network Perfomance"

    Relevant Pages

    • Re: Parsing large amounts of data (200,000 entries) with XML?
      ... I was testing using a plain old HTML document handwritten. ... you won't see the problem Larry stated. ...
      (microsoft.public.vb.general.discussion)
    • Re: InnerHTML not grabbing entire HTML if

      is present
      ... Well it's not an HTML document then, ... DTD of any version of HTML. ... "tag soup", with gratuitous amounts of error correction. ... The parser that processes the character sequence and turns it ...
      (comp.lang.javascript)

    • Re: Controls v HTML
      ... Whatever your perception of ASP.Net Controls is, ... HTML elements in a web page are not necessarily unrelated to ... provide a user interface in the form of an HTML document. ... The ASP.Net object model ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: How to disable "view source" in Internet Explorer
      ... "Kevin Spencer" wrote in message ... >> If you want to hide the html from a casual observer, ... >> start of the html document with white space and hope that they would not ...
      (microsoft.public.frontpage.client)
    • Re: Publishing - "Cannot rename file" and other error messages
      ... IMO the only safe Optimisation option is removal of leading whitespace. ... > -I assume you are advising to uncheck all optimize HTML options. ... >>> I'm using an account (with links to my other accounts) where I'm ... >>> When I receive the error message I publish again - it get a little ...
      (microsoft.public.frontpage.client)