diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-06-17 00:40:05 -0600 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-06-17 00:40:05 -0600 |
commit | 5b1aab5e0c6239547b02bbfcde9107e0885299fa (patch) | |
tree | 879fff988a3489519919d1aa94ee88c88357812b /plugins/style/style.js | |
parent | 98f6d5630f6be4f955e308a5c1a91749f8cf7300 (diff) |
time how long it takes to add the alert (negligible) + readme
Diffstat (limited to 'plugins/style/style.js')
-rw-r--r-- | plugins/style/style.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/style/style.js b/plugins/style/style.js index 4f917ad..876c345 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -127,7 +127,7 @@ window.alert = (message) => { document.getElementById('alertMessage').textContent = message; alertDiv.classList.add('visible'); } +// ^ takes 0.014ms to run, so performance is not the concern here. +// timed with console.time, console.timeEnd - -// alert("Hello world!") document.body.style.visibility = "visible" |