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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #3057
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.