Is a UI framework necessary?
Nobody should be building a modal from scratch in the year 2022, but that doesn't mean you need an enormous styles-included UI framework! There are tools that precisely solve the most important accessibility challenges while remaining totally agnostic when it comes to cosmetics and styles.
How to reduce the request count of the third-party scripts?
Use a Tag Manager to Organize Third-Party JS
While you can load third-party scripts asynchronously, the browser still needs to parse and execute them individually. This might mean requesting additional data during the page load. Tag managers solve this problem by reducing the number of requests down to one.