Purpose
Decide whether a server-rendered initial template is delivered with the slim shell asset set instead of the full asset stack. When the initial template was rendered server-side and its HTML does not require the full assets, WR defaults to the shell set — this filter lets a plugin override the decision (e.g. force full assets for a template that injects components via JS the detector cannot see).
Usage
add_filter( 'wr_template_use_shell_assets', array( $this, 'decide_shell_assets' ), 10, 3 );Parameters
$use_shell_assets (bool): WR’s default decision.$payload (array): The template request payload.$initial_template_html (string): The server-rendered HTML of the initial template.
Return false to force the full asset stack for this request.
