F
F
felony13twelve2020-05-10 03:39:26
JavaScript
felony13twelve, 2020-05-10 03:39:26

How to create a preloader search?

Good night everybody! Please tell me how preloader search is created, let's say there is an anonymous chat, when you press the search button, you are loading the search in a different amount of time, sometimes 10 seconds or less.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-05-10
Matytsyn @ArsenyMatytsyn

1. You send an asynchronous request to the back → show the loader image.
2. You get a response → delete/hide the loader icon.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question