When start to send an ajax request, open the overlay and spin.
When the request is received, close the overlay and spin.
All events have a prefix which is options.name
followed by a hyphen.
And a class named [prefix]-overlay
will be added.
You'd better see the source code in this page. F12 will help you.