SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT
Re: SOLVED Preferred way of preloading images in Gantry 5?
Posted 6 years 10 months ago
If you want a proper preloader then take a look at aikon super-preloader. Make sure it’s what you want though because it’s not free. Alternately just use my suggestion here.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Preferred way of preloading images in Gantry 5?
Posted 6 years 10 months ago
Thanks for the replies all. Sorry, I did mean PREload, not REload (opps!)
So yeah, I was trying to preload the images before the page loads (as my main background image is a bit large, so tends to display a fraction of a second after the content.
I'll try the various suggestions here, thanks again.
Re: SOLVED Preferred way of preloading images in Gantry 5?
Posted 6 years 10 months ago
One thing I forgot to ask was, is there a way to load images which are used in other pages when I open the homepage?
EG. When I open the homepage, it will also load (go into the browser cache) various images used in other pages such as domain/myservices, domain/aboutus. The point being, when someone finishes reading the homepage and clicks on MyServices page, the images have already been loaded/in the browser cache, speeding up the user experience.
Re: SOLVED Preferred way of preloading images in Gantry 5?
Posted 6 years 10 months ago
That doesn't really make sense. Once any image has been presented your browser has already cached it (the same for joomla too if you have caching on). But to force images to load in the home page (that are not used in the home page) just means that your home page is going to take a lot longer to load. Really you should keep each page to only load that which it requires itself. The preloader Suggections that I made will work on all of your pages. and only present the page once it has been fully rendered in the browser. (either by fading out or with a spinner).
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Preferred way of preloading images in Gantry 5?
Posted 6 years 10 months ago
Thanks Mark. Yeh, that makes sense.
My idea was to somehow load images for other pages, once the homepage had rendered / viewable / usable. So the user would open homepage and while they're reading through it, the site is loading images into local browser cache for use in other pages.
But I guess in the age of 4G speeds, I'm overthinking this!