Dialog - Dynamic

Dynamic dialogs fetch their content just before they are displayed rather than initial page load. This is a useful feature to reduce page size and speed up page load time.

Dialog
<p:commandButton value="Show Dialog" onclick="PF('dlg').show();" type="button" />
       
<p:dialog header="Dialog" widgetVar="dlg" dynamic="true">
   <h:outputText value="This content is loaded lazy." />
</p:dialog>