I assume that there are a few techniques for preloading images. This is the one that I use.
Change each < and > bracket to square brackets. If I enter square brackets, the code sample disappears when I post the message!!!
There are two lists of images; these are created by slide.htt. The first list contains images on the current page that are not loaded initially; you may not need this. The second list contains all the images in the next and previous slide pages. You can preload videos as well, but I don't do this because the user may not want to watch the video, so it could be wasted bandwidth. I list the images in the order that I want them to be loaded. It doesn't matter if you preload an image twice; if it is already cached, it won't be downloaded again. My example doesn't preload buttons; maybe it should.
5) You can verify that this is effective.
Test some album pages that you have opened recently. You may want to clear the web browser's cache first.
Open a slide page. Wait a few seconds. Click "next". The next slide page should appear immediately.
Open a slide page. As soon as the "next" button appears, click it. There will be a lag before the page opens.
Edited by: ctwist on 4 May 2021, 13:14
This message got scrambled when I posted it. Some of the text disappeared. It looked good when I previewed it!
I am investigating.
Edited by: ctwist on 4 May 2021, 13:42
The original message was completely messed up. I have recreated it. Let's hope it gets posted correctly this time.