W3C home > Mailing lists > Public > www-html@w3.org > August 2006

Re: XHTML Applications and XML Processors [was Re: xhtml 2.0 noscript]

From: Orion Adrian <orion.adrian@gmail.com>
Date: Thu, 3 Aug 2006 07:46:25 -0400
Message-ID: <abd6c8010608030446h34428894racf0124cb58bc175@mail.gmail.com>
To: www-html@w3.org

Going back to what I and some others suggested yesterday it is
possible to resolve this issue with delay loading with issues. It's
also solved by selective deferment or delay.

For example:

<script required="required-content">... example function ... </script>
<a href="..." onclick="example();">...</a>
...10k of content...
...10k of content...
  <div id="required-content">element I want to modify, happens to be last</div>
...5mb of content

In this scenario the system only requires you do download as much of
the page as is needed before executing the script. This allows the
author to make assumptions that he was not previously allowed to make.
This adds interoperability, speed and safety at the cost of increased
complexity and some additional verboseness.

Scripts with no required contents should be able to be run as soon as
they're rendered while scripts that rely on content that has yet to be
rendered can be queued for execution or their elements disabled while
the required content is loaded (not necessarily rendered).


Orion Adrian
Received on Thursday, 3 August 2006 11:46:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:13 UTC