How to show a loading gif while making an ajax call?

[ad_1] […](https://i.redd.it/6vrv4rc4ow1d1.gif)

I have a web page that makes a call to an API and it can take 4 or 5 seconds to process the data. I’d like to be able to add a modal, transparent loading gif or image (one those spinning things you see when something is loading) but I don’t know how to do it.

Any Ideas or tutorials that anyone has used successfully?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer