API Docs for:
Show:

CSSNotificationWebkitStrategy Class

Constructor

CSSNotificationWebkitStrategy

()

Defined in css_notify.js:289

Item Index

Methods

Methods

poll

(
  • node
  • callback
)
private

Defined in css_notify.js:299

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 HTMLElement

    Style node to poll.

  • callback Function

    Callback function is invoked if the polled resource finishes loading within the timeout period.