Load javascript or image when a element is shown.