Lazy Load
Source
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:pm="http://primefaces.org/mobile"> <f:view renderKitId="PRIMEFACES_MOBILE" /> <h:head> </h:head> <h:body> <pm:page id="main"> <pm:header title="Lazy Load"></pm:header> <pm:content> <h:form> <p>Pages in a multi-page view can be loaded lazily on demand to improve initial page load time. These lazy pages might not even be accessed by the user so loading them with an on-demand approach has a significant speed boost with many pages in a single view. To mark a page to be lazy loaded, enable lazy option.</p> <p:link outcome="pm:lazy" value="Go to Page 2" /> </h:form> </pm:content> </pm:page> <pm:page id="lazy" lazy="true"> <pm:header title="Lazy Page"></pm:header> <pm:content> <h:form> <p>This page has been loaded on demand just before navigation. It is now cached and accessing it again does not trigger a new load.</p> <p:link outcome="pm:main" value="Go Back" /> </h:form> </pm:content> </pm:page> </h:body> </html>