N
N
Nikita Guriev2020-08-03 21:07:24
JavaScript
Nikita Guriev, 2020-08-03 21:07:24

By what means to understand how much the page is loaded?

On some sites I see that there is a loading indicator. And not just a preloader (spinners) (without numbers, percentages, percentage of fullness), but with approximate indicators. Where percentages are displayed, etc. How it works? That is, I now understand how to get the statuses loaded and loaded, but how to get intermediate data?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-08-03
@firedragon

1. Lie to the user (the easiest one)
2. Make a list of resources and load them in the loader, everything will be fine here
3. Put a spinner

A
Alexey Yarkov, 2020-08-03
@yarkov

but with approximate indicators. Where percentages are displayed, etc.

Do you happen to believe in pop-up notifications? Like this:
Ivanov I. I. from Bobruisk just bought this product

Just make a scale with percentages and the closer to 100, the slower increase the number of pseudo percentages. Upon the onset of a full load, accelerate the increase in pseudo-percentage and remove the indicator by 100.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question