How can detect the minimze window?

Just like the .resize? But when click on that button?


I don’t believe it’s possible, although it is possible to detect when a user’s mouse goes out of the page, e.g.

I have not tested anything with the following, but it might be of some use.

UPDATE: This does not have cross-browser support.

It doesn’t work for me in chrome, maybe its because im on linux?:
DeepinScreenshot_select-area_20190630141203 :

I think the Page Visibility API has somewhat decent support.

setTimeout(()=> {
1 Like