fireEventIfNeeded(link) {
      // Don't fire twice same event.
      if (!link['__loaded']) {
        link['__loaded'] = true;
        // Update link's import readyState.
        link.import && (link.import.readyState = 'complete');
        const eventType = link.import ? 'load' : 'error';
        link.dispatchEvent(newCustomEvent(eventType, {
          bubbles: false,
          cancelable: false,
          detail: undefined
        }));
      }
    }
/**
     * Fires load/error event for the import if this wasn't done already.
     * @param {!HTMLLinkElement} link
     */
Fires load/error event for the import if this wasn't done already.
Fires load / error event for the import if this wasn ' t done already .
fireEventIfNeeded(link) {
      if (!link['__loaded']) {
        link['__loaded'] = true;
        link.import && (link.import.readyState = 'complete');
        const eventType = link.import ? 'load' : 'error';
        link.dispatchEvent(newCustomEvent(eventType, {
          bubbles: false,
          cancelable: false,
          detail: undefined
        }));
      }
    }
fireEventIfNeeded ( link ) { if ( ! link [ '__loaded' ] ) { link [ '__loaded' ] = true ; link . import && ( link . import . readyState = 'complete' ) ; const eventType = link . import ? 'load' : 'error' ; link . dispatchEvent ( newCustomEvent ( eventType , { bubbles : false , cancelable : false , detail : undefined } ) ) ; } }
Fires load/error event for the import if this wasn't done already.
Fires load / error event for the import if this wasn ' t done already .
// Don't fire twice same event. // Update link's import readyState.