A
A
Andrey Dyrkov2015-12-27 14:17:31
JavaScript
Andrey Dyrkov, 2015-12-27 14:17:31

Are there plugins for something like this?

I don’t even know what it’s called :)
But the bottom line is that when an ajax request is made, the page content is preloaded as gray blocks describing the basic structure, as in this picture
79f8906e3e0346a78a131a17f5699cb2.png

After the end of the ajax request, everything is revealed into content, like here
3a81a2bf5a7540c29df9a19a1683af2e.png
I’m wondering if there are plugins for this I would like to know the original name.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
trushka, 2015-12-28
@VIKINGVyksa

why plugins? C jQuery, for example, is generally elementary: There is, for example, a block with id="content" with the class "loading", for which the background is just a picture with a structure.

$('#content').load('url для запроса', function(){$(this).removeClass('loading')} )
api.jquery.com/load

V
Vlad Feninets, 2015-12-27
@fnnzzz

This is a Facebook feature.
try searching for "lazy load facebook", I'm sure you'll find something similar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question