As it's currently implemented, Behaviour is run onLoad.
Unfortunately,
this means that none of the Behaviours are in place while
the page is
loading, even though the browser renders the page
incrementally.
For example, if you have a Behaviour function that changes
the look of
an element then the elements will first appear with the old
look and
then, when the page finishes loading, they'll all change.
Needless to
say, this is pretty annoying.
Does anyone know how to change this so that Behaviour gets
called
_before_ the elements appear on the screen?
Sprinkling the page with
<script>Behaviour.apply()</script> tags seems
to work, but is annoying and seems to defeat the whole
purpose of
cleaning up the page.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Behaviour Javascript Library"
group.
To post to this group, send email to behaviour googlegroups.com
To unsubscribe from this group, send email to
behaviour-unsubscribe googlegroups.com
For more options, visit this group at http://group
s.google.com/group/behaviour
-~----------~----~----~----~------~----~------~--~---
|