CSSNotificationWebkitStrategy Class
Constructor
CSSNotificationWebkitStrategy
()
Item Index
Methods
Methods
poll
(
private
-
node
-
callback
This method was borrowed and adapted from lazyload, Copyright (c) 2011 Ryan Grove ryan@wonko.com See original source and license information at this link: https://github.com/rgrove/lazyload/blob/master/lazyload.js
Begins polling to determine when pending stylesheets have finished loading in WebKit. Polling stops when all pending stylesheets have loaded or after configured timeout period (to prevent stalls).
Successful loading of the stylesheet within the timeout period is signalled by the invocation of the client-supplied callback function. There is no guarantee of this callback being invoked.
Parameters:
-
node
HTMLElementStyle node to poll.
-
callback
FunctionCallback function is invoked if the polled resource finishes loading within the timeout period.