Optimizing Third-Party Loading in Next.js

November 03, 2023 14 min Free

Description

Third-party resources can significantly impact the user experience of Next.js applications by slowing down page load times and introducing performance bottlenecks. This talk explores the challenges developers face when loading popular third-party scripts and introduces `@next/third-parties`, a package developed by the Chrome Aurora team. The package provides components and utilities for efficiently loading third-party libraries into Next.js applications, aiming to improve both developer and user experience. The presentation details the thinking behind the package, demonstrates its usage, and offers a preview of future plans.