Skip to content

Commit 959fa8a

Browse files
committed
Lower timeout for zbar wasm loading
1 parent 0b31f8d commit 959fa8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
};
7777
7878
if ('requestIdleCallback' in window) {
79-
requestIdleCallback(initPolyfill, { timeout: 5000 });
79+
requestIdleCallback(initPolyfill, { timeout: 2000 });
8080
} else {
8181
window.addEventListener('load', function() {
8282
setTimeout(initPolyfill, 100);

0 commit comments

Comments
 (0)