A
A
Alexander Chibilyaev2016-11-30 17:14:27
HTML
Alexander Chibilyaev, 2016-11-30 17:14:27

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

2 answer(s)
E
Evgeny Volf, 2016-11-30
@Wolfnsex

All files from the other two pages are HTTPv2 / Server push. Read for example here .

T
trushka, 2016-12-01
@trushka

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 question

Ask a Question

731 491 924 answers to any question