Third Party
Teaches strategies for mitigating third-party script performance impact. Use when third-party scripts like analytics, ads, or widgets are degrading your page load times or Core Web Vitals.
Install
npx skills add PatternsDev/skills --skill third-partygit clone --depth 1 https://github.com/PatternsDev/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/javascript/third-party ~/.claude/skills/third-partyPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Optimize loading third-parties ## Table of Contents - [When to Use](#when-to-use) - [Instructions](#instructions) - [Details](#details) - [Source](#source) ## When to Use - Use this when third-party scripts (analytics, ads, chat widgets, social embeds) are slowing down your site - This is helpful for optimizing Core Web Vitals while retaining essential third-party functionality ## Instructions - Use `async` or `defer` attributes for non-critical third-party scripts - Establish early connections with `preconnect` and `dns-prefetch` resource hints - Lazy-load below-the-fold embeds (YouTube, maps, social media) using IntersectionObserver or facades - Consider self-hosting critical third-party scripts for better caching control - Use the Next.js Script component with appropriate `strategy` values for framework-level optimization ## Details It would be hard to find a modern site that operates in silos. Most sites coexist and depend on several other sources on the web for data, functions, content, and much more. Any resource located on another domain and consumed by your site is a third-party (3P) resource for your site. Typical third-party resources that are included on sites include: - Embeds for maps, videos, social media, and chat services - Advertisements - Analytics components and tag managers - A/B testing and personalization scripts - Utility libraries that provide ready-to-use helper functions such as those used for data visualization or animations.
Details
- Skill name
third-party- Repository
- PatternsDev/skills
- Path
javascript/third-party/SKILL.md- Repo updated
- 15 April 2026
FAQ
What does the Third Party skill do?
Teaches strategies for mitigating third-party script performance impact. Use when third-party scripts like analytics, ads, or widgets are degrading your page load times or Core Web Vitals.
How do I install the Third Party skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add PatternsDev/skills --skill third-party. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Third Party popular?
It lives in PatternsDev/skills, which has 259 GitHub stars and 28 forks.
Related skills
AI UI Patterns
259PatternsDev/skills
Teaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user experience in React.
Async Components
259PatternsDev/skills
Teaches async component loading in Vue for performance optimization. Use when you have heavy components that aren't needed on initial render and can be loaded on demand.
Bundle Splitting
259PatternsDev/skills
Teaches bundle splitting techniques for web performance. Use when your application has a large JavaScript bundle that affects load times or when you need to reduce FCP/LCP.
Tree Shaking
259PatternsDev/skills
Teaches tree shaking for dead code elimination in JavaScript bundles. Use when your bundle includes unused exports and you want to reduce the final bundle size during the build step.
Static Import
259PatternsDev/skills
Teaches static ES2015 import syntax for module dependencies. Use when you need to import code that is required at load time and benefits from static analysis and tree shaking.
View Transitions
259PatternsDev/skills
Teaches the View Transitions API for animating DOM changes. Use when you want smooth animated transitions between pages or UI states without manual animation code.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.