I've build a rather large Vue.js application (like >80 .vue components). My users complain about their draining phone batteries, safari throws a “This webpage is using significant energy...” notice.
How can I possibly find out what's going on? I tried playing around with the performance tab of Chrome and Lighthouse, but didn't really find out anything.
Here are a few things that I feel might have a bad influence:
I have a quite a few watchers that keep an eye on vuex states, because it would be a stupid amount of work to pass information up and down components. This has led to a massive store.js file with a ton of variables that are used all over my application.
I also use computed properties a lot
I have a couple event listeners on events like resizing the window