commento.js: remove jsLoad

It wasn't being used.

Closes https://gitlab.com/commento/commento-ce/issues/54
This commit is contained in:
Adhityaa 2018-06-20 09:07:45 +05:30
parent 9b021d47e4
commit da3fa3cd41

View File

@ -288,30 +288,6 @@
} }
function jsLoad(file, ready) {
var script = document.createElement("script");
var loaded = false;
script.type = "application/javascript";
script.src = file;
script.async = true;
script.onreadysessionchange = script.onload = function() {
if (!loaded &&
(!this.readySession ||
this.readySession === "loaded" ||
this.readySession === "complete"))
{
ready();
}
loaded = true;
script.onload = script.onreadysessionchange = null;
};
append(document.body, script);
}
function footerLoad() { function footerLoad() {
var footer = create("div"); var footer = create("div");
var aContainer = create("div"); var aContainer = create("div");