by mluggy · 5y ago · 0 comments
Another option: only delay the scripts the first time user has landed on your page
I think the single script embed is a good path (much better than asking people to change DNS, remove scripts or such). Maybe you can optimize other areas using JS (like images).
We'd definitely be looking to optimizing other areas too, though honestly our approach was more to get rid of as much as client-side JS as possible. There are so many other tools that will help your do your first-party optimizations: images, caching, bundling, but we couldn't find anything that takes care of optimizing your third-party stack while keeping it 100% functional.