From 6074da9a527f0c9544f1ada4c0d7a781855da757 Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Fri, 6 Oct 2023 04:50:20 +0700 Subject: [PATCH] "ignore" and "once" attributes, improved performance --- reinitializer.js | 343 ++++++++++++++++++++++++++++------------------- 1 file changed, 203 insertions(+), 140 deletions(-) diff --git a/reinitializer.js b/reinitializer.js index addb3aa..565af08 100644 --- a/reinitializer.js +++ b/reinitializer.js @@ -1,181 +1,244 @@ "use strict"; if (typeof window.reinitializer !== "function") { - // Not initialized + // Not initialized - // Initialize of the class in global namespace - window.reinitializer = class reinitializer { - /** - * Parent element for location elements - */ - css = document.head; - - /** - * Parent element for location