aboutsummaryrefslogtreecommitdiff
path: root/modern/src/index.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-27 08:48:14 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-27 08:48:14 -0700
commit8f7387f026c8b983f8896626c1db689e23e148b9 (patch)
treeee08cdbf1db0abcac8df1e9b718debf6f3976a2d /modern/src/index.js
parent8e0fa926ee03a025ad284b06280132f55be22e28 (diff)
downloadtrackermap-web-8f7387f026c8b983f8896626c1db689e23e148b9.tar.gz
trackermap-web-8f7387f026c8b983f8896626c1db689e23e148b9.tar.bz2
trackermap-web-8f7387f026c8b983f8896626c1db689e23e148b9.zip
Preload map images once
Diffstat (limited to 'modern/src/index.js')
-rw-r--r--modern/src/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/index.js b/modern/src/index.js
index 547e39ef..1aca25f8 100644
--- a/modern/src/index.js
+++ b/modern/src/index.js
@@ -12,6 +12,9 @@ import CachingController from './CachingController';
import SocketController from './SocketController';
import theme from './common/theme';
import Navigation from './Navigation';
+import preloadImages from './map/core/preloadImages';
+
+preloadImages();
const base = window.location.href.indexOf('modern') >= 0 ? '/modern' : '/';