--- url: "https://web.dev/articles/efficiently-load-third-party-javascript" titulek: "Efficiently load third-party JavaScript | Articles | web.dev" h1: "Efficiently load third-party JavaScript Stay organized with collections Save and categorize content based on your preferences." popis: "Learn how to improve load times and user experience by avoiding the common pitfalls of using third-party scripts." jazyk: "en" kanonicka: "https://web.dev/articles/efficiently-load-third-party-javascript" drobecky: ["Articles", "Efficiently load third-party JavaScript"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:42:02" znaku: 9141 slov: 1295 kodovani: "iso-8859-2" sha256: "c14dfa9cb082eb5035cb14a6a21da9f5fb872bed16783bd77bb9940de8ca9917" --- Efficiently load third-party JavaScript Stay organized with collections Save and categorize content based on your preferences. Milica Mihajlija If a third-party script is [slowing down](/articles/third-party-javascript) your page load, you have two options to improve performance: Remove it if it doesn't add clear value to your site. Optimize the loading process. This post explains how to optimize the loading process of third-party scripts with the following techniques: Using the `async` or `defer` attribute on `