Third-Party Scripts on Trades Websites: Chat Widgets, Analytics and Pixels That Slow You Down
Chat widgets, call tracking, analytics, ad pixels and review badges each add a script from someone else’s server. Together they can make a trades site slow. This guide shows how to find the costly ones and what web.dev recommends.
I am Robiul Alom Ronju, Founder of Nexranking. The figures and rules below come from the pages linked in Sources. My own advice is marked as mine.

How they slow a page
Web.dev lists these causes: extra network requests to other servers, heavy JavaScript that keeps the main thread busy, large unoptimised images or video, and poor caching or compression. A slow or failed script can become a single point of failure. Some scripts also delay the page load event even when marked async or defer, if their server responds slowly.
How to audit them
- Chrome DevTools Network panel: throttle the network and CPU, right-click a request and block its URL to see the page without it. Test at least three times.
- Performance panel: record a load and sort third-party scripts by load time using the bottom-up view grouped by product.
- Lighthouse: the boot-up time and network payloads audits.
- WebPageTest: the domain breakdown, blocking domains and the single point of failure test.
Async and defer
Async downloads a script alongside page parsing, then pauses parsing to run it. It suits scripts that should run early, such as some analytics. Defer downloads in parallel and runs after parsing, which suits less critical scripts. Web.dev says not to use async for essential libraries such as jQuery.
Lazy loading and loading order
Load ads and videos only when needed, such as when the visitor scrolls near them, or after the main content. Web.dev suggests using IntersectionObserver rather than scroll listeners. For analytics, waiting too long loses data, so start it lazily but capture early page-load data.
Other points from web.dev
- Self-hosting a script gives control of caching but means you must update it yourself.
- Use preconnect or DNS prefetch for origins you must use.
- Remove scripts that add no clear value.
- Use a tag manager to limit tags and who can add them.
- Avoid document.write.
- Audit scripts regularly and use Subresource Integrity, HTTPS and a content security policy where you can.
My checklist for a trades site
This is my own advice. List every script on the site, name who asked for it, check the cost with the tools above and remove any that nobody uses. Web.dev does not cover chat widgets by name, so treat those like any other script: test with and without. Check the effect on INP and CLS. Consent rules also apply, see cookies and PECR.
Who should own the script list
Keep a short list of every script, why it is there and who asked for it. Web.dev suggests limiting who can add tags if you use a tag manager. For a small trades business, that means one person, usually the owner, approves every new tool. This is my own advice. Review the list twice a year and remove anything that has not been used.
A worked example
Illustrative example, not a client case. A cleaner’s site loads 14 third-party scripts. She finds that two old chat tools and a heat map tool add over a second to page load. She removes them, loads the review badge after the page settles and keeps analytics and one chat tool.
Mistakes I see
- Installing a script and never reviewing it.
- Loading several chat tools at once.
- Letting an agency add tags without a list.
- Using async for a library other scripts need.
- Ignoring consent rules for tracking scripts.
Next, read the Core Web Vitals report and ask for an audit.
Which script is slowest?
Test with the Network or Performance panel. Do not guess.
Should I use async or defer?
Async suits early scripts such as some analytics. Defer suits less critical ones.
Does web.dev cover chat widgets?
Not by name. Treat them as any other third-party script.
Can I self-host scripts?
Yes, but you must update them yourself.
Related guides
- WCAG 2.2 Basics for Trades Websites: The New Rules for Buttons, Forms and Help
- Accessible Quote Forms and Buttons for Trades Websites: A WCAG 2.2 Checklist
- nosnippet, max-snippet and data-nosnippet: Controlling Google Snippets on a Trades Website
Browse every guide in the local SEO guides for trades hub.
Sources
- web.dev, Efficiently load third-party JavaScript: https://web.dev/articles/optimizing-content-efficiency-loading-third-party-javascript