1. A method comprising: registering, with a background page script executing on a device, a plurality of webpages executing on the device; caching an action generated by one of the plurality of webpages in a database; and in response to a determination that the device is in an online state and that the one of the plurality of webpages is no longer registered: retrieving, by the background page script, the action from the database; and transmitting, by the background page script, the action.