A
A
Alexander2015-10-14 16:35:49
JavaScript
Alexander, 2015-10-14 16:35:49

How can I do nothing until the page loads?

How do I show the loading GIF while the page is loading?
hide after loading.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Novikov, 2015-10-14
@kentuck1213

layout block with position:fixed, 100% width and height, on top of the entire site. put a gif in the background.
on the $(window).load() event you hang the smooth disappearance of this block (fadeOut).
this is one of the options, you can do it differently, but the meaning is the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question