Before this commit, the overlay cover operation was deferred while an animation was ongoing on the target element. The problem was that the animation end event is not triggered if the related DOM is removed before the animation ends... or simply if the animation is infinite. When this occured, the overlay never appeared. Note: this could probably be backported if the need rises. Part of https://github.com/odoo/odoo/pull/36803 task-2070930