[EMAIL PROTECTED] schrieb:
> Dietrich Streifert <[EMAIL PROTECTED]> writes:
> 
>> I'm currently developing a big widget hierarchie (tabviews in tabviews with
>> many widgets) which is automatically disposed at page unload by the qooxdoo
>> queues.
>>
>> This triggers the "stop unresponsive script" dialog in FireFox after 5
>> sec. of running. So not the long running disposer is the problem but the
>> dialog box is which needs user interaction to be closed by hitting the
>> correct button.
>>
>> Is there a possibility to avoid this message? I know there is the
>> "dom.max_script_run_time" property in about:config but this is not  an option
>> because the application should run out of the box without modifying the
>> firefox installation.
> 
> I've seen this during the loading process rather than the dispose process, and
> have thought about it a bit.  For loading, one could get around it by cause
> the load process to call a series of functions via a timeout (of zero) so that
> control is returned to the browser frequently.  That 5 seconds is clock time
> since the browser had control.  I would imagine that something similar could
> be done with timeout callbacks during the dispose process to limit the amount
> of time that the browser does not get to reset its 5-second timer.

During unload however this is not possible. As then you start a new 
"thread" (ok, no real thread). Each timeout definition lets the current 
function continue to run. Which mean the unload is not waiting for the 
timeout.

Timeouts for loading are possible yes. But I think it's maybe a better 
idea to don't use them to much. Timeouts are known to decrease the 
overall performance of applications.

Better IMHO would be a event-based post loading. If you just intialize 
the frames first, start some xmlhttp requests for retrieving additional 
data and fill lists, trees, etc. on the complete event of these incoming 
data. Other major applications like MS Outlook seems to work the same.

Cheers,

Derrel


> 
> Derrell
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to