high battery use, any way to reduce battery drain or call end program through JavaScript

I have noticed that even on a single page app battery drain seems to be high, I know from my own experience if I download an app that drains my phone down all the time I will uninstall it, I also hate apps that do not shut down , is there a method to save and stop after a certain time in background status or end on exit
1 person has
this question
This topic is no longer open for comments or replies.