From da3fa3cd414db76fac93ebe3062930eb6333c395 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Wed, 20 Jun 2018 09:07:45 +0530 Subject: [PATCH] commento.js: remove jsLoad It wasn't being used. Closes https://gitlab.com/commento/commento-ce/issues/54 --- frontend/js/commento.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index b235f85..e2e9752 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -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() { var footer = create("div"); var aContainer = create("div");