Z
Z
Zhandev2016-07-08 19:36:04
css
Zhandev, 2016-07-08 19:36:04

How to make it so that the loader is displayed before the page is completely downloaded?

How to make it so that the loader is displayed before the page is completely downloaded?
Like on the site: devacademy.ru

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2016-07-08
@Zhandev

Yes. Show it first and hide it on DOMContentLoaded event

document.addEventListener("DOMContentLoaded", function(event) {
    // скрыть лоадер ))
  });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question