improved page loads by restricting when data is loaded