Answer the question
In order to leave comments, you need to log in
How to load all pages after the main page in the user's browser?
Good afternoon. There was a following question. The site has only 3 pages. The user goes to the first one.
How can I make the remaining 2 pages load in the user's browser after the first one is fully loaded?
Did preload prefetch and prerender. Works rather weakly.
Ideally, download all files from the other two pages.
I'm waiting for your advice)
Answer the question
In order to leave comments, you need to log in
All files from the other two pages are HTTPv2 / Server push. Read for example here .
Make a one-page site))
The simplest way to make the effect of changing pages is to simply navigate through the anchors together with the use of the css pseudo-class :target - set display:none to all block-pages, and set :target to display: block. And at the beginning of the page, insert another script to change the hash to the id of the first page
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question