Skip to content

Commit e726b2e

Browse files
committed
Vary the Site Health test message by the result
1 parent 263e4de commit e726b2e

File tree

1 file changed

+3
-1
lines changed
  • plugins/performance-lab/includes/site-health/audit-enqueued-assets

1 file changed

+3
-1
lines changed

plugins/performance-lab/includes/site-health/audit-enqueued-assets/helper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function perflab_aea_audit_blocking_assets(): array {
151151
*/
152152
function perflab_aea_enqueued_blocking_assets_test(): array {
153153
$result = array(
154-
'label' => __( 'Blocking assets', 'performance-lab' ),
154+
'label' => __( 'Any blocking assets do not appear to be particularly problematic', 'performance-lab' ),
155155
'status' => 'good',
156156
'badge' => array(
157157
'label' => __( 'Performance', 'performance-lab' ),
@@ -181,6 +181,7 @@ function perflab_aea_enqueued_blocking_assets_test(): array {
181181
'good' !== $scripts_result['status'] ||
182182
'good' !== $styles_result['status']
183183
) {
184+
$result['label'] = __( 'Your site has may have a problem with blocking assets', 'performance-lab' );
184185
$result['status'] = 'recommended';
185186
$result['actions'] = sprintf(
186187
/* translators: 1: HelpHub URL. 2: Link description. 3.URL to clean cache. 4. Clean Cache text. */
@@ -407,6 +408,7 @@ static function ( $carry, $asset ): int {
407408
*/
408409
function perflab_aea_blocking_assets_retrieval_failure( $response ): ?array {
409410
$result = array(
411+
'label' => __( 'Unable to check site for blocking assets', 'performance-lab' ),
410412
'status' => 'recommended',
411413
'description' => '',
412414
);

0 commit comments

Comments
 (0)