Control what plugins are loaded in each page?


I’m trying to improve performance of my website ( Just wondering if there is a way to control what plugins are loaded for each page. If I’m not wrong, currently all plugins are loaded on all pages and most of the time those plugins are NOT being used.

Eg example 1. Stripe plugin only used on checkout. Don’t need it on other pages.
Eg example 2. Typewriter text effect is only used on the homepage.