diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-09-24 16:15:31 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-09-24 16:15:31 +0200 |
commit | ff077f4656f6f1e0355e9a634512ac63fb0af27c (patch) | |
tree | 7da4ffe7988d4667e5d309d238f184f5f4103a92 | |
parent | bfefd81d4c2113c5821fe17064206b2836c0ce18 (diff) | |
download | novnc-ff077f4656f6f1e0355e9a634512ac63fb0af27c.tar.gz |
Preload status bar images
These are used via CSS, which means the browser doesn't load them until
an element actually gets those CSS rules. There can be some delay to
this loading which causes visual glitches. By preloading we can make
sure those images are cached and ready when the status bar appears.
-rw-r--r-- | vnc.html | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -50,6 +50,11 @@ <!-- Stylesheets --> <link rel="stylesheet" href="app/styles/base.css"> + <!-- Images that will later appear via CSS --> + <link rel="preload" as="image" href="app/images/info.svg"> + <link rel="preload" as="image" href="app/images/error.svg"> + <link rel="preload" as="image" href="app/images/warning.svg"> + <script src="app/error-handler.js"></script> <script type="module" crossorigin="anonymous" src="app/ui.js"></script> </head> |