I am trying to add a small delay (2 sec) between the loader icon and the success with the data as html.
What I have tried to use is the setTimeout and put in a delay
Use setTimeout() like this:
setTimeout()