moved js to pull more requested based on window size to complete callback so it fires in the correct sequence