wait till transition ends before removing the view.
add jquery.lazyload library