event offline doesn't seem to work.. I have it attached to a page so I assume when device is offline (let's say airplaine mode) and user goes to this page it would trigger navigatettopage (special offline page with message) - doesn't happen
any other way to add custom JS to LOAD event so detection happens onload?