1. A method comprising: registering, with a background page script executing on a device, a plurality of webpages associated with an application executing on the device, wherein registering each of the plurality of webpages is in response to opening respective webpages; caching an action generated by one of the plurality of webpages in a database; deregistering, with the background page script, the one of the plurality of webpages in response to closing the one of the plurality of webpages; and in response to a determination that the device is in an online state and that the one of the plurality of webpages is deregistered: retrieving, by the background page script, the action from the database; and transmitting, by the background page script, the action.