anchor.diff:              div.appendChild(img);
               gd.parentNode.replaceChild(div, gd);
           });
  +}
  +function ifsharpMakePng(gd) {
  +    var fmt =
  +        (document.documentMode || /Edge/.test(navigator.userAgent)) ?
  +            'svg' : 'png';
  +    return ifsharpMakeImage(gd, fmt);
  +}
  +function ifsharpMakeSvg(gd) {
  +    return ifsharpMakeImage(gd, 'svg');
   }
   </script>
   """
  
positive.code:             .Replace("Plotly.newPlot(", "Plotly.plot(")
              .Replace(
                  "data, layout);",
                  "data, layout).then(ifsharpMakeImage);")
  
  type XPlot.Plotly.Chart with
  
      static member Image (chart: PlotlyChart) =
          { ContentType = "text/html"
            Data = chart.GetPngHtml()
          }
  
negative.code: require = require_save;
  requirejs = requirejs_save;
  define = define_save;
  function ifsharpMakeImage(gd, fmt) {
      return Plotly.toImage(gd, {format: fmt})
          .then(function(url) {
              var img = document.createElement('img');
  