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

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...
<div>
...10k of content...
  <div id="required-content">element I want to modify, happens to be last</div>
</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