Third-party scripts
Third-party scripts are code a page loads from other companies, such as analytics, chat widgets, ads and tag managers.
Each one costs extra connections, downloads and work on the visitor's device, and you don't control what it does or when it changes.Source 1 They are a common cause of slow pages, poor INP and privacy problems, since many of them track visitors.Source 2
Before adding one, ask what it does that the site can't do itself, and whether it needs a cookie banner.
How Regular approaches it
Regular's sites load no third-party scripts by default: fonts, statistics and images come from the site's own domain. It is the single change that makes the biggest difference to speed and privacy at once.
BenjaminWeb designer for sustainable and circular businessesSources and further reading
- Third-party JavaScript, web.devweb.dev
- Third-party Web, Patrick Hulcethirdpartyweb.today