butiran

test js loader shortcode

· 1 min read · edit

loaders

For JS in static/js

{{< script/loader >}}
plotly/3.3.0/plotly-cartesian.min.js
d3/3.5.17/d3.min.js
chartjs/4.5.1/chart.umd.min.js
canvasplot/0.0.0/canvasplot.js
butiran/0.0.29/butiran.min.js
{{< /script/loader >}}

For JS in assets/js

{{< script/loader >}}
26a94.js
{{< /script/loader >}}

minifying

Original file assets/js/26a94.js

console.log("26a94 loaded");

function nothing() {
  /*
  This text should be stripped in minimized js.
  */
  let empty = [];
  return empty;
}

const none = nothing();

In HTML after minifying /butiran/js/26a94.min.<sha256>.js

(() => {
    console.log("26a94 loaded");
    function e() {
        let e = [];
        return e
    }
    var t = e()
})()