V
V
vladislav9972020-04-17 13:40:43
JavaScript
vladislav997, 2020-04-17 13:40:43

How to make a stub in this script?

There is this script:

var auto_refresh = setInterval(
function ()
{
$('#view_chats').load('chat-records.php').fadeIn(3000);
}, 1000);

The problem is that when the page is loaded for the first time, the posts start to appear after a second, i.e. with a delay. How to make a stub (Loading for example) on the first page load until the entries appear?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question