Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Third Party Woes

Third Party Woes

Third-party scripts represent one of the most vexing challenges in web performance. In this talk, we’ll look at how to identify third-party script issues, some potential ways to mitigate their impact, and what the larger performance community needs to do to tackle these problems.

Jason Grigsby

November 14, 2024
Tweet

More Decks by Jason Grigsby

Other Decks in Technology

Transcript

  1. 1. Identify the problem 2. Talk about solutions 3. Teach

    any concepts or syntax 4. Implement the fix 5. Done
  2. Do you need Bolt? Yes. It powers our entire checkout

    experience and abandoned cart functionality. Plus, we're approaching our holiday code freeze. We can't consider this until next year.
  3. Do you need Bolt? We like it, but we're not

    wedded to it. What can we use to do the same thing that would be faster? Uh…
  4. 0% 25% 50% 75% 100% 2019 2020 2021 2022 94%

    94.4% 94.1% 88.5% Percentage of mobile websites with at least 1 third-party resource Source: HTTP Archive Web Almanac, https://almanac.httparchive.org/
  5. Our goals for today: 1. How to analyze third-party script

    performance 2. What you can do with this information 3. Some newer options? 4. A call to action
  6. Our goals for today: 1. How to analyze third-party script

    performance 2. What you can do with this information 3. Some newer options? 4. A call to action 1. How to analyze third-party script performance
  7. Third Party Audit Spreadsheet Updated for use with Request Map

    Beta Domain Summary CSV https://bit.ly/3rdpartyaudit
  8. [A brief aside] What are we going to do about

    CatchPoint’s apparent neglect of WebPageTest?
  9. Our goals for today: 1. How to analyze third-party script

    performance 2. What you can do with this information 3. Some newer options? 4. A call to action 2. What you can do with this information
  10. Is it necessary? Is it duplicative of another script? Is

    it needed on every page? Can the script provider improve performance? Can we self-host it? Can we execute the script on the server or edge? Can we use defer or async for loading?
  11. Is it necessary? Is it duplicative of another script? Is

    it needed on every page? Can the script provider improve performance? Can we self-host it? Can we execute the script on the server or edge? Can we use defer or async for loading? Can we use facade to only load when necessary?
  12. Is it necessary? Is it duplicative of another script? Is

    it needed on every page? Can the script provider improve performance? Can we self-host it? Can we execute the script on the server or edge? Can we use defer or async for loading? Can we use facade to only load when necessary?
  13. “In the last 10 years, there has been an increasing

    pressure for brands that already had relationships with bigger retailers like Home Depot and Costco to start syndicating additional review content to their sites. And since most of those bigger retailers already had relationships with BazaarVoice, there was a little to no choice for brands.”
  14. Our goals for today: 1. How to analyze third-party script

    performance 2. What you can do with this information 3. Some newer options? 4. A call to action
  15. B A

  16. Most website owners have no idea that adding a third-party

    script will impact their site performance, their customer experience, and their revenue.
  17. By the time you figure it out, you may be

    too reliant on the third-party to change.
  18. Our goals for today: 1. How to analyze third-party script

    performance 2. What you can do with this information 3. Some newer options? 4. A call to action
  19. Coordinate on solutions to get more third-parties o ff the

    main thread or onto the server and the edge