all repos — retro-website @ 795abdf30f703bcc6cb6bef1a8daedeb73260295

remove debug messages
Marco Andronaco andronacomarco@gmail.com
Mon, 19 Sep 2022 02:03:35 +0200
commit

795abdf30f703bcc6cb6bef1a8daedeb73260295

parent

c28f8a2fe33f5a349ae848bebf6f5da189332e28

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M res/slow_load.jsres/slow_load.js

@@ -21,7 +21,7 @@ const all = document.getElementsByTagName("*");

let total = 0; function hide_all() { - console.log("hide"); + for (i in all) { const node = all[i]; if((node.childElementCount == 0) && (not_allowed.indexOf(node.tagName) === -1) && node.style){

@@ -33,7 +33,6 @@ }

} function start_loading(speed, not_allowed=[], callback) { - console.log("show"); function onNodeLoaded(node){ node.style.display = node.getAttribute("data-display");