Front end JavaScript for wikidata.org needs to gracefully handle when internet is not error free.
Example:
Go to an item, disable internet or go offline in firefox, then clicking edit on an statement. Go online, try again to click edit. Currently it won't work without reloading the page.