Lazy loading

Just by setting its property ‘content-loaded’ to false, we can instruct a block to not load its data initially, but to lazy-load it as a separate request after loading the page. This is particularly useful for components which are displayed on several pages: on one hand it reduces the amount of content to show on the original page, allowing it to render faster, and on the other hand the lazy-loaded data, accessed on a subsequent request, may originate from a cached page.


The side calendar widget, which appears in the right sidebar on all pages from the Demo website, lazy-loads its data

Sign up to our newsletter:

Welcome to the PoP framework!
Break the information monopoly

the PoP framework is open source software which aims to decentralize the content flow and break the information monopoly from large internet corporations. Read more.