Simple, useful and visually pleasing UX to respond to user interaction and indicate progress in the background.
Include jQuery & blockui.min.js
into your page and:
// one element:
$('.selector').block();
/* ➡️ */
$('.selector').unblock()
// full window:
$.blockUI();
/* ➡️ */
$.unblockUI()
// get status:
$('.selector').isBlocked()
$.isUiBlocked()
Inspired by https://github.com/malsup/blockui