diff --git a/js/localization.js b/js/localization.js index f3c882fb..7c53cda1 100644 --- a/js/localization.js +++ b/js/localization.js @@ -182,8 +182,9 @@ function tDocLoader() { } function onLoad() { - tDocLoader.stop(); + document.removeEventListener('DOMContentLoaded', onLoad); process(tDocLoader.observer.takeRecords()); + tDocLoader.stop(); if (cacheLength !== Object.keys(t.cache).length) { localStorage.L10N = JSON.stringify(t.cache); }