A
A
Alexey Andrianov2010-11-07 21:44:38
WordPress
Alexey Andrianov, 2010-11-07 21:44:38

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

3 answer(s)
T
tzlom, 2010-11-08
@tzlom

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

S
stel, 2010-11-07
@stel

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 ...

W
Wott, 2010-11-08
@Wott

I understand that the problem with the graphics?
Load it in the background after the page has loaded.
You can, of course, pull out the page with Ajax and change it, but these are the same side view eggs - instead of an empty page, the user will stare at loading.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question