How to track the full load of an element on a page?

  • 0
    Hello everyone! The question is no longer new, but it is possible that something has changed lately.
    I am working with DLE engine and loading image for news. When the image is loaded, a preview of the image appears, I need to somehow track that the preview has appeared.

    Let's say the block where the previews (parent) appear div.main , and the block of the previews that appears there div.prev .
    Tried $ ('. Main'). Load (), doesn't fit. So far I stopped at setTimeout (), but as for me this is not the best solution.
    JavaScript Lilah Gilmore, Apr 13, 2019

  • 1 Answers
  • 0

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!