How to know if all elements in a DIV have been fully loaded?

前端 未结 2 772
悲哀的现实
悲哀的现实 2020-12-29 00:47

There is a div in which there will be some elements (images, iframe, etc) being loaded via Ajax. After those elements have been fully loaded, I need to execute

2条回答
  •  暖寄归人
    2020-12-29 01:15

    Please elaborate your question. There are different methods for different type of elements.

    For iframe follow this thread, How can I detect whether an iframe is loaded?

    For image http://api.jquery.com/load-event/

    for flash it depends lots of things. How can I tell if Flash is loaded on a website?

提交回复
热议问题