开发者

Is there an event that tells when the window is visible (painted, not black)?

开发者 https://www.devze.com 2023-03-03 04:43 出处:网络
My Xul app will run in a very slow system, and the \"active\" event of the Xul windows is called while my window is still not visible (the window area is black waiting for the w开发者_如何转开发indow

My Xul app will run in a very slow system, and the "active" event of the Xul windows is called while my window is still not visible (the window area is black waiting for the w开发者_如何转开发indow to be painted). A second later the window is painted.

Is there an event that tells when the window is visible (painted, not black)?


Maybe the MozAfterPaint event will help you.


Does window.onload work any better?


I think you are dealing with the limitations of old hardware :)

If there is an image in your page, you could try adding onload to the image and see what happens...

If you are using a specific box, couldn't you use window.setTimeout()?

0

精彩评论

暂无评论...
验证码 换一张
取 消