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.
This commit is contained in:
parent
bfefd81d4c
commit
ff077f4656
5
vnc.html
5
vnc.html
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue