How Are Developers Balancing Performance and Features in Modern Web Apps?

How do you all handle third-party scripts, like analytics or ad services?:thinking: I find that they often have a huge impact on performance, and it feels like a necessary evil :melting_face: . Any tips for managing them without hurting load times :face_with_bags_under_eyes: ?