Event on component is becoming visible

Hi,
Is it possible to make lazy loading with triggering to load something only if it is visible on the screen?
Like a gallery with large list of elements make img src="$pathToImage" only if this element got visible for user?
Thanks!