On a web app I need to work with a lot of high-res images, which are dynamically added to the DOM tree. They are pre-loaded, then added to the page.
It's one thing to detect when such an image has finished loading, for this I use the load
event, but how can I detect when it has finished being rendered within the browser, using Javascript?
When working with high resolution images, the actual painting process can take a lot of time and it's very important to know when it ends.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…