pp-loading-content
Prisma PHPThis attribute marks a specific DOM element as the injection target for loading screens. Instead of replacing the entire page body during navigation, only the inner HTML of this element is swapped.
The Injection Target
Without this attribute
By default, when Prisma PHP fetches a loading.php file, it attempts to replace the entire <body> contents.
With this attribute
The engine finds the element marked with pp-loading-content and injects the loading HTML inside it.
Implementation
Add the attribute to your main content wrapper in your layout file (usually layout.php).
Related Customization
You can control the animation speed of this injection using the sibling attribute:
pp-loading-transition="{'fadeIn': 100, 'fadeOut': 200}"