Shared on Mage Dispatch · 26 Feb 2025
Global Loading module
Adds a global loading indicator.
- Activates on any form submit to indicate action
- Can be activated, de-activated by setting a global variable window.isLoading = true|false
- Listens to any ajax fail/complete events to hide (prevents hung site with loader never going away)
- Throws an event that you can listen to if global variable changes so you can do things when loader shows/hides