Only load stuff in viewport

It should be a way to choose that I want my page only to load and render elements that will be in the viewport and then they lazy load when user scrolls. This would speed up pages.