To fix this issue You can use offsetParent() to get the closest parent element that is positioned. According to the documentation, it works when the parent element is positioned absolute, relative, or fixed, but it also worked with sticky positioning for me.
This might help you From the jQuery docs: Caveats of the load event when used with images A common challenge developers attempt to solve using the .load() shortcut is to execute a function when an image (or collection of images) have completely loaded. There are several known caveats with this that should be noted. These are:
this will help Within the following code, I am trying to get all .node elements that are direct child elements of .row elements. Currently my code will look for any given element that matches the .node class within .row element. , Just use querySelectorAll and use the query string .row > .node: