API Docs for:
Show:

CSSNotificationGeckoStrategy Class

Constructor

CSSNotificationGeckoStrategy

()

Defined in css_notify.js:233

Item Index

Methods

Methods

poll

(
  • node
  • callback
)
private

Defined in css_notify.js:243

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 the specified stylesheet has finished loading in Gecko. Polling stops when all pending stylesheets have loaded or after a 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.