是否有一个事件可以告诉窗口何时可见(漆成,而不是黑色)?
我的 Xul 应用程序将在非常慢的系统中运行,并且 “active”事件当我的窗口仍然不可见时调用 Xul 窗口(窗口区域为黑色,等待窗口被绘制)。一秒钟后,窗户就被画好了。
是否有一个事件可以告诉窗口何时可见(漆成,而不是黑色)?
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 window to be painted). A second later the window is painted.
Is there an event that tells when the window is visible (painted, not black)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
也许 MozAfterPaint 活动会对您有所帮助。
Maybe the MozAfterPaint event will help you.
window.
onload
工作得更好吗?Does window.
onload
work any better?我认为您正在处理旧硬件的限制:)
如果您的页面中有图像,您可以尝试将
onload
添加到图像中,看看会发生什么...如果您使用的是特定的框,你不能使用
window.setTimeout()
吗?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()
?