From 0e7b83733d1f52750b08e3a02e586126f86a53fc Mon Sep 17 00:00:00 2001 From: gocivici Date: Sun, 25 Feb 2024 16:44:45 +0300 Subject: [PATCH] -firefox test preload image --- public/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/index.js b/public/index.js index 9ba59a9..587f0d4 100644 --- a/public/index.js +++ b/public/index.js @@ -18,6 +18,12 @@ let pageVisible = true; let debugMode = false; let timeoutHandle; +//preload images +new Image().src = 'characterSprites/Red/Down.png'; +new Image().src = 'characterSprites/Red/Up.png'; +new Image().src = 'characterSprites/Red/Left.png'; +new Image().src = 'characterSprites/Red/Right.png'; + //emoji picker code // let atPosition = true;