Show loader till Javascript alert Box pops out
I have an App where I allow users to share their status updates. I have a box for the status update. I am using Javascript SDK for updating the users status.
But whenever the user tries to share his update it takes about 5 seconds for the alert box to come up showing that his status was updated successfully.
Is there a way by which I can show a loader so that the user thinks that the request is being processed and he waits and does not click multiple times on the share button.
Show loader till Javascript alert Box pops out
===

I have an App where I allow users to share their status updates. I have a box for the status update. I am using Javascript SDK for updating the users status.
But whenever the user tries to share his update it takes about 5 seconds for the alert box to come up showing that his status was updated successfully.
Is there a way by which I can show a loader so that the user thinks that the request is being processed and he waits and does not click multiple times on the share button.