본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #3057

third-party-scripts

하는 일

이 스킬은 분석, 광고, 채팅 위젯 같은 웹 페이지의 외부 스크립트를 검토합니다. 페이지 로딩이 느린 것을 발견한 개발자와 사이트 운영자를 위한 스킬입니다.

사용하는 경우

  • ✓분석, 광고, 채팅 스크립트 때문에 페이지가 느릴 때.
  • ✓페이지의 스크립트 태그에 async나 defer 속성이 없을 때.
  • ✓성능 점검에서 외부 코드가 병목으로 나올 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“사이트가 느린데 채팅 위젯과 분석 도구가 원인인 것 같습니다. 두 도구가 어떻게 불러와지는지 확인해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 각 외부 스크립트가 어떻게 불러와지고 페이지를 막는지 확인합니다. async, defer, 지연 로딩을 제안하고, 변경하기 전에 측정으로 실제 병목을 먼저 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

자주 묻는 질문

스크립트는 언제 async나 defer를 써야 하나요?

이 스킬은 분석처럼 다른 것에 의존하지 않는 스크립트에는 async를, 채팅 위젯처럼 페이지에 의존하는 스크립트에는 defer를 제안합니다.

이 스크립트들을 직접 호스팅해야 하나요?

이 스킬은 중요한 외부 스크립트라면 직접 호스팅하는 것이 의미 있을 수 있다고 말합니다.

느린 스크립트인지 어떻게 확인하나요?

이 스킬은 변경을 권장하기 전에 브라우저 개발자 도구, Lighthouse, 실제 사용자 데이터의 근거를 찾습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
75k
순위
#3057
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬