Skip to content

Commit

Permalink
task: Reduce time until modal
Browse files Browse the repository at this point in the history
Relates: #339
Relates: #314
(cherry picked from commit 44ebe81)
  • Loading branch information
jonaseberle committed Dec 11, 2024
1 parent 2b4ace5 commit cf0942f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Resources/Public/Js/cookieman-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
/** global: cookieman */

if (null !== document.querySelector('[data-cookieman-showonce="1"]')) {
// wait a bit in order to a) be executed out of the main rendering thread b) give user first impression of page
// get out out of the main rendering thread
setTimeout(
cookieman.showOnce,
2000
100
)
}
2 changes: 1 addition & 1 deletion Resources/Public/Js/cookieman-init.min.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
null!==document.querySelector('[data-cookieman-showonce="1"]')&&setTimeout(cookieman.showOnce,2e3);
null!==document.querySelector('[data-cookieman-showonce="1"]')&&setTimeout(cookieman.showOnce,100);
2 changes: 1 addition & 1 deletion Resources/Public/Js/cookieman.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf0942f

Please sign in to comment.