From e8d1b37b8269fe4c45928448ebbf434f24ec0017 Mon Sep 17 00:00:00 2001 From: lioshi Date: Mon, 8 Mar 2021 09:57:04 +0100 Subject: [PATCH] fix: events.load really at the end (inside setTimeout) events.load must be execute inside the setTimeout before script realy fully loaded --- tarteaucitron.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index e55aaaa..3c9e177 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -662,14 +662,13 @@ var tarteaucitron = { tarteaucitron.userInterface.respond(this, false); }); } + if(tarteaucitron.events.load) { + tarteaucitron.events.load(); + } }, 500); }); }); - - if(tarteaucitron.events.load) { - tarteaucitron.events.load(); - } }, "addService": function (serviceId) { "use strict"; @@ -1844,4 +1843,4 @@ var tarteaucitron = { }); } } -}; \ No newline at end of file +};