some work on minifying tasks upon navigating away from page