VercatusGet started
Grade AR-124Performance

Third party scripts

Third-party scripts — tag managers, ads, analytics, consent, chat, embeds — add JavaScript that can keep the main thread busy, delay rendering and delay interaction; web.dev advises using async or defer for any third-party script not needed for the critical rendering path, lazy-loading embeds and ads until they are needed, and adding them after the critical content loads. Measuring them has a limit: Resource Timing reports transferSize and body sizes as 0 for cross-origin resources unless the vendor sends Timing-Allow-Origin, so request counts per host are reliable and bytes often are not.

Sources

  1. 1
  2. 2
  3. 3
    MDN · 2024PerformanceResourceTiming.transferSizedeveloper.mozilla.org

AGrade A: official documentation or a standard. A grade describes the provenance of the sources above; it is not a probability that a change will work. The effect basis says how the size of the effect is known: measured by a study, taken from an industry report, only documented without a size, or not quantified.

Put this evidence to work

Related entries