Loading Animation on Server Call
Posted: Sun Mar 01, 2020 11:23 pm
How to apply loading animation when making a ajaxJSON() call?
Now iam trying with the below code :
pui["loading animation"]["css"] = 'loader';
let response = ajaxJSON({ url: "http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" });
pui["loading animation"]["css"] = '';
Please suggest some better approach to apply loading animation on making a server call.
Now iam trying with the below code :
pui["loading animation"]["css"] = 'loader';
let response = ajaxJSON({ url: "http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" });
pui["loading animation"]["css"] = '';
Please suggest some better approach to apply loading animation on making a server call.