{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-third-party-scripts-f9f7d309aa0a","title":"Optimize Third-Party Script Loading","summary":"Reduce page load time and rendering delays by ensuring third-party scripts use async\/defer attributes, lazy loading, or self-hosting where appropriate.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-third-party-scripts-f9f7d309aa0a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-third-party-scripts-f9f7d309aa0a","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-third-party-scripts-f9f7d309aa0a.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-third-party-scripts-f9f7d309aa0a\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes. Consider self-hosting critical scripts if necessary.","instructions":"---\nname: third-party-scripts\ndescription: \"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.\"\nmetadata:\n  category: performance\n  priority: high\n  difficulty: intermediate\n  estimatedTime: \"20\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/third-party-scripts\n---\n\n# Optimize third-party script loading\n\nThird-party scripts are the #1 cause of slow websites\u2014unoptimized loading can add 2-5 seconds to your page load time.\n\n## Quick Reference\n\n- Use async for independent scripts (analytics, ads)\n- Use defer for DOM-dependent scripts (chat widgets, social)\n- Lazy-load non-critical scripts after page load\n- Consider self-hosting critical third-party scripts\n\n## Check\n\nAnalyze third-party scripts on this page to ensure they use async\/defer and don't block rendering.\n\n## Fix\n\nAdd async or defer attributes to third-party scripts and consider lazy loading non-critical scripts.\n\n## Explain\n\nExplain the performance impact of third-party scripts and strategies to minimize their blocking effect.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/performance\/third-party-scripts\n","use_cases":["Auditing slow page loads caused by third-party scripts","Improving performance for websites with heavy assets or rendering delays","Optimizing script loading for analytics, ads, and chat widgets"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/third-party-scripts\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T05:57:29.000000Z","updated_at":"2026-11-24T07:12:47.000000Z","seo_title":"Optimize third-party script loading for faster performance","seo_description":"Reduce page load time and rendering delays by optimizing third-party script loading with async\/defer and lazy loading techniques.","seo_keywords":["optimize third-party scripts","reduce page load time","async defer script loading","improve website performance"]}}