I'm not going to install shopify chat app to check, but I'm assuming it doesn't have that sort of flexibility.
Tidio chat app has a option for manual install, so while you can't make so the js loads when you click on the icon, you can set it so the script doesn't load till you scroll down, so it won't affect your pagespeed score.
Available for freelance. I specialize in speed improvement and theme development.
If your looking for a pagespeed solution for your Website, take a look at: https://renderbetter.com/