check local storage only onload finished