How can you preload an entire web page using JavaScript so that I can cache this page in a users browser?
I know how to preload images using JS, but I would like to preload the whole page.
Use case. On my website I have a google maps page with a lot of other content (images, css, JS), and it takes a lot of time (about 10 seconds) to download from a non-cached browser.
This is a subpage of my home page, and users usually visit this page. So what I want to do is preload the entire page with all the loaded content (images, JS) as much as possible so that it is cached in the users browser, so when they come to this page, it loads much faster. Loading a page from a cached browser reduces the time from 10 seconds to 2 seconds.
Thanks in advance for your help.
MrDoAlot
source share