lib/loadCSS.js
/*! onloadCSS: adds onload support for asynchronous stylesheets loaded with loadCSS. [c]2016 @zachleat, Filament Group, Inc. Licensed MIT */
adds onload support for asynchronous stylesheets loaded with loadCSS. [c]2016 @zachleat, Filament Group, Inc. Licensed MIT
adds onload support for asynchronous stylesheets loaded with loadCSS . [ c ] 2016 @zachleat Filament Group Inc . Licensed MIT
function onloadCSS(ss, callback) {
  var called;
  function newcb() {
    if (!called && callback) {
      called = true;
      callback.call(ss);
    }
  }
  if (ss.addEventListener) {
    ss.addEventListener('load', newcb);
  }
  if (ss.attachEvent) {
    ss.attachEvent('onload', newcb);
  }
  if ('isApplicationInstalled' in navigator && 'onloadcssdefined' in ss) {
    ss.onloadcssdefined(newcb);
  }
}
function onloadCSS ( ss , callback ) { var called ; function newcb ( ) { if ( ! called && callback ) { called = true ; callback . call ( ss ) ; } } if ( ss . addEventListener ) { ss . addEventListener ( 'load' , newcb ) ; } if ( ss . attachEvent ) { ss . attachEvent ( 'onload' , newcb ) ; } if ( 'isApplicationInstalled' in navigator && 'onloadcssdefined' in ss ) { ss . onloadcssdefined ( newcb ) ; } }
onloadCSS: adds onload support for asynchronous stylesheets loaded with loadCSS.
onloadCSS : adds onload support for asynchronous stylesheets loaded with loadCSS .
// This code is for browsers that don’t support onload // No support for onload (it'll bind but never fire): //	* Android 4.3 (Samsung Galaxy S4, Browserstack) //	* Android 4.2 Browser (Samsung Galaxy SIII Mini GT-I8200L) //	* Android 2.3 (Pantech Burst P9070) // Weak inference targets Android < 4.4