s@rdalya

 

DOMLoadController

Page history last edited by vozcelik 3 yrs ago


 

DOMLoadController

(extends Object)


Object Summary

 

This is a Controller object that is used when DOMManager's quickLoad method is called.

 

This object is not used directly, it is an intermediate helper object that s@rdalya API utilizes.


 

Instance Members

 

index - a counter.


sanityLimit - maximum number of counts before the execution falls back to traditional "window.onload" method. Default is 50 which is a pretty good number 99% of the time.

:50,


interval - interval index stored when setInterval called.


retryMilli - Milliseconds to retry if an iteration fails. During test we found out that 256 is a pretty good number (don't ask why). DOM Content becomes ready in at most 10 iterations (which makes less than 3 seconds). Since the sanityLimit is 50 iterations we can pretty much assume that quickLoad will always execute.


See Also

 

None given.


Usage Examples

 

None given. Be the first one to add a usage example!

Comments (0)

You don't have permission to comment on this page.