One approach is to track data in a cookie. When refreshing (i.e. loading the page), you can check for the existence of a cookie and read (and display) its value using JavaScript. A process that updates aggregates can also read a cookie and update it, if necessary, to ensure that the values are synchronized after the updates are completed.
source
share