Answer the question
In order to leave comments, you need to log in
Smooth transition between pages in WordPress how?
I would like to implement the following scheme:
when you click on the link, the page would be loaded, and after a complete “loading”, it would instantly (not gradually “block by block” “in jerks”) be displayed in the browser window.
Answer the question
In order to leave comments, you need to log in
Everything is very simple, you
take the same jQuery (or whatever you like or comes with WP)
, hook all clicks on links
, respectively, when you click, you do some kind of visual reaction that they say it’s clicked (otherwise the user will be aggro) and start loading another page with Ajax
when you get it the full content of the page SUDDENLY replace your page with it (well, or an iframe, here whoever you like)
ALSO you can use progressive technology - build a tree based on the loaded content, find all the pictures in the tree, preload them and again replace the page - the pictures will stretch out from cache. But I would not recommend doing this - on narrow channels, users will transmit hate rays to your server
I have two ways to implement this:
1. Make a layer full screen of the browser labeled Loading and remove it after the page is fully loaded.
2. Ajax. Pull out the url from the link, load the page, and show it.
In general, I think it is worth considering how the ends justify the means ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question