docs: function loadSVGSuccess(text) {
          if (!destroyed && !unloaded) {
              if (!svgLoaded && text) {
                  embedSVG(text);
                  svgLoaded = true;
                  if (!removeOnUnload) {
                      // cleanup the promise (abort will remove the svg text from
                      // the in-memory cache as well)
                      $loadSVGPromise.abort();
                      $loadSVGPromise = null;
                  }
              }
              // always insert the svg el when load was successful
              if ($svg.parent().length === 0) {
                  $svg.appendTo($svgLayer);
              }
          }
      }