with document ready and pageLoaded function