You need to cover the entire site window with a translucent layer, which will turn on when a window appears with a message. The old script does when loading windows so
$("#fuzz").css("height", $(document).height()); But the fact is that I have dynamically expanding areas on 2 pages (this is a graph and a visual editor), and that’s where it fails. I was looking for something like jquery bind document.body.clientWidth but could not find it. English stackoverflow did not solve this problem. Tell me the solution, but for now I’ll confine myself to 10 seconds
window.SetInterval -> $("#fuzz").css("height", $(document).height()); everyone understands that this is not an option, because expensive computer resources will be spent and the update may not come in time.