Skip to content
Skillpedia
Websites & UI (frontend)75k · #3057

third-party-scripts

What it does

This skill reviews outside scripts on a web page, such as analytics, ads and chat widgets. It is for developers and site owners who see slow page loads.

When to use it

  • ✓When a page feels slow because of analytics, ad or chat scripts.
  • ✓When script tags on a page lack async or defer attributes.
  • ✓When a performance audit points to third-party code as the bottleneck.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/third-party-scripts/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/third-party-scripts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My site is slow to load and I think the chat widget and analytics are the problem. Can you check how they load?”

5 new skills a week. 1 minute to read.

How it works

The agent checks how each outside script is loaded and whether it blocks the page. It suggests async, defer or lazy loading, and confirms the real bottleneck with measurements first.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Optimize third-party script loading

Third-party scripts are the #1 cause of slow websites—unoptimized loading can add 2-5 seconds to your page load time.

Quick Reference

  • Use async for independent scripts (analytics, ads)
  • Use defer for DOM-dependent scripts (chat widgets, social)
  • Lazy-load non-critical scripts after page load
  • Consider self-hosting critical third-party scripts

Check

Analyze third-party scripts on this page to ensure they use async/defer and don't block rendering.

Fix

Add async or defer attributes to third-party scripts and consider lazy loading non-critical scripts.

Explain

Explain the performance impact of third-party scripts and strategies to minimize their blocking effect.

Code Review

Review the routes, assets, and loading behavior that affect Optimize third-party script loading. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/third-party-scripts

FAQ

When should a script use async or defer?

The skill suggests async for independent scripts such as analytics, and defer for scripts that depend on the page, such as chat widgets.

Should I host these scripts myself?

The skill says self-hosting can make sense for critical third-party scripts.

How does the skill confirm a slow script?

It looks for evidence from browser developer tools, Lighthouse or real user data before recommending changes.

Details

Original description by the author

Use when auditing slow page loads, heavy assets, or rendering delays related to Optimize third-party script loading. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#3057
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills