After my computer has been idle for a while and I load a page, I sometimes get an error like
SyntaxError: JSON.parse: unexpected character at line 2 column 5 of the JSON data
and the page does not load
I can refresh the page and the error disappear and the site works as normal.
Until I figure out the source of the problem, is there any javascript or jQuery way to catch that error and force the page to reload?