Hello,
I want to activate page-loader in Metronic template, but I can't.
When I make the codes given in the documentation, the button is triggered, but I want to show the page-loader until the page is fully loaded.
How can I do that?
What javascript code should I use?
Hi,
You can try to use Layout Builder and activate the page loading. If you check the source code it added the below page loading block as the first element of the body tag:
<!--begin::loader-->
<div class="app-page-loader">
<span class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</span>
</div>
<!--end::Loader-->
data-kt-app-page-loading-enabled="true"
and data-kt-app-page-loading="on"
attributes to the body element.