I am loading HTML content using jQuery's `.html()` function. Part of the HTML content I am trying to load are images, which take some time to be loaded. What I do is on an onclick event,
What I wanted to happen is that, when the DOM has finished loading, I want it to fadeIn. If it is still not finished, I want it to stay hidden hence, the fadeOut function before the html load.
Is this possible? That method doesn't seem to work for me.
以上就是jQuery .html function with .load的详细内容，更多请关注web前端其它相关文章！