code: function loadStylesheet(href) {
    return new Promise(resolve => {
      const link = document.createElement('link');
      link.onload = resolve;
      link.rel = 'stylesheet'
      link.type = 'text/css';
      link.href = href;
      document.head.appendChild(link);
    });
  }
docs: lazy load a stylesheet