Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [05-2006 Date Index] [Date Next] || [Thread Prev] [05-2006 Thread Index] [Thread Next]

[dokuwiki] Re: Short "freeze" in loading Edit-Page

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 7 May 2006 12:43:31 +0200
On Thu, 6 Apr 2006 12:27:44 +0200
Oliver Geisen <oliver.geisen@xxxxxxxxxxxx> wrote:

> Hello,
> 
> if i edit a page, the source will show up very quickly but then it  
> needs a second or two until the toolbar appears.
> It seems that the page is stalled.
> Because of this i often "misplace" Mouseclicks into the toolbar,  
> because i want to edit the source too quickly ;-)
> 
> Why is this so, and is there a way to get around this ?

I'm just cleaning my inbox and came across this issue again. Just a
little info. The delay is probably mostly noticed in non-Gecko based
browsers (eg IE or Opera). The script which adds the toolbar is attached
to the onload event of the document. This is needed because it needs to
be emsured the whole DOM is parsed before it is attempted to modify it.

The problem is that the loaded event is only fired when all dependent
media (images) is loaded. Gecko browsers have a nice DOMloaded event
which is fired right after parsing the DOM, this is why there is nearly
no delay in Firefox.

There are some techniques that can be used to get the same behavior in
IE but I haven't bothered to implement one, yet.

More info is available here:

http://dean.edwards.name/weblog/2005/09/busted/
http://dean.edwards.name/weblog/2005/09/busted2/

Andi




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.