OutputPanel is a container used for auto update and deferred loading. With deferred="true" the content is loaded with Ajax to speed up the page load: after the page by default or, with deferredMode="visible", when the panel is scrolled into view. The loading facet is displayed meanwhile, loaded makes deferred loading work in Ajax requests, here in a dynamic tab.
<h:form>
<div class="card" style="min-height: 175px">
<p:outputPanel deferred="true">
<h5>Loaded after page load</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</p:outputPanel>
</div>
<div class="card" style="min-height: 230px">
<p:tabView dynamic="true">
<p:tab title="Skeletons">
<p:outputPanel deferred="true" class="mt-2">
<p:ajax event="load" listener="#{outputPanelView.loadData}"/>
<f:facet name="loading">
<p:skeleton width="200px" height="21px" class="mb-4"/>
<p:skeleton width="100%" height="42px"/>
</f:facet>
<h5>#{outputPanelView.data.title}</h5>
<p>#{outputPanelView.data.body}</p>
</p:outputPanel>
</p:tab>
<p:tab title="Ajax / Loaded">
<p:outputPanel deferred="true" loaded="#{not empty outputPanelView.data2}" class="mt-2">
<p:ajax event="load" listener="#{outputPanelView.loadData2}"/>
<f:facet name="loading">
<p:skeleton width="200px" height="21px" class="mb-4"/>
<p:skeleton width="100%" height="42px"/>
</f:facet>
<h5>#{outputPanelView.data2.title}</h5>
<p>#{outputPanelView.data2.body}</p>
</p:outputPanel>
</p:tab>
</p:tabView>
</div>
<div style="height:1000px"></div>
<div class="card">
<p:outputPanel deferred="true" deferredMode="visible">
<h5>Loaded after the panel becomes visible on page scroll</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</p:outputPanel>
</div>
</h:form>