How can I remove unused code after uninstalling apps?

Hey Oli,

would love to hear your opinion on my store. I think there is a lot of work on this one:

https://malujdiamentami.com/

  1. I was wondering, how can I start optimizing the liquid files on my back-up theme and then test it against Lighthouse after some time? Can it be only done on the production theme?
  2. Would you know a way to display/render apps, like messenger app/loyalty app only on specific pages, not on all pages? Would that increase the page speed load?
  3. Would you also know if this lazy-loading is fetching the minified image on the initial page load even if the user does not see the image? If yes, then do you know any resources where I could try and load the image only if the user is close to it?

Any further referral to helpful documentation is much appreciated.

Dom