Skip to content

Improve success and no-preload messages for clarity#55

Merged
nucliweb merged 1 commit into
mainfrom
snippet/Validate-Preload-Async-Defer-Scripts
Feb 11, 2026
Merged

Improve success and no-preload messages for clarity#55
nucliweb merged 1 commit into
mainfrom
snippet/Validate-Preload-Async-Defer-Scripts

Conversation

@nucliweb

Copy link
Copy Markdown
Owner

Updates console messages to be more informative and accurate:

  1. When no script preloads are found:

    • Clarifies it's looking for rel="preload" as="script"
    • Adds helpful note that this is fine (only preload critical scripts)
  2. When preloads exist but no anti-patterns detected:

    • Changes from generic "properly configured" to specific "No anti-patterns detected"
    • Explains what makes them valid (blocking scripts or mitigated with fetchpriority="low")
    • Larger, more prominent success message

This addresses the issue where a site with valid preloads (e.g., fonts, images) would see "No preloaded scripts found" which was technically true but could be confusing.

Now the messaging is clear about what was validated and why the result is positive.

Updates console messages to be more informative and accurate:

1. When no script preloads are found:
   - Clarifies it's looking for rel="preload" as="script"
   - Adds helpful note that this is fine (only preload critical scripts)

2. When preloads exist but no anti-patterns detected:
   - Changes from generic "properly configured" to specific
     "No anti-patterns detected"
   - Explains what makes them valid (blocking scripts or
     mitigated with fetchpriority="low")
   - Larger, more prominent success message

This addresses the issue where a site with valid preloads
(e.g., fonts, images) would see "No preloaded scripts found"
which was technically true but could be confusing.

Now the messaging is clear about what was validated and why
the result is positive.
@vercel

vercel Bot commented Feb 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webperf-snippets Building Building Preview, Comment Feb 11, 2026 3:40pm
webperf-snippets-u6am Building Building Preview, Comment Feb 11, 2026 3:40pm

@nucliweb nucliweb merged commit 3a0350a into main Feb 11, 2026
2 of 4 checks passed
@nucliweb nucliweb deleted the snippet/Validate-Preload-Async-Defer-Scripts branch February 11, 2026 15:40
Repository owner deleted a comment from claude Bot Feb 11, 2026
@nucliweb nucliweb restored the snippet/Validate-Preload-Async-Defer-Scripts branch February 11, 2026 15:45
nucliweb added a commit that referenced this pull request Feb 25, 2026
…efer-Scripts

Improve success and no-preload messages for clarity
@nucliweb nucliweb deleted the snippet/Validate-Preload-Async-Defer-Scripts branch February 26, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant