title: Why is my couchapp not displaying on Safari 11.1?
body: <p>I have a couchapp that displays a graph of my solar hot water system data. It has been working fine on Safari/Chrome/Firefox on Mac/iOS/Android for about 8 years. After updating Safari on my Mac to 11.1, I get the error "This page was reloaded because a problem occurred" and when Retry is clicked, "A problem repeatedly occurred with [the site]". The problem also occurs with Safari on iOS 11.3 (but not before). Oddly, when I open the developer console and reload, the page displays fine and no errors are registered.</p>
  
  <p><a href="https://b482ecaa-1ac2-4933-bec9-ecade207eea0-bluemix.cloudant.com/wxd/_design/app/index.html" rel="nofollow noreferrer">Here's the site</a></p>
  
  <p>I filed a bug with Apple about a month ago but have not received any answer. (39437438).</p>
  
  <p>What could be causing this?</p>
  
  <p>UPDATE: I notice that some static content is briefly displayed before the crash, so it's possible that the error occurs when data is fetched with the jQuery 1.8.1 getJSON call. The code is:</p>
  
  <pre><code>  var url = '_view/byDate?group_level=' + group_level.toFixed(0);
    url += '&amp;startkey=' + makeKey(start_date);
    if (date) {
      url += '&amp;endkey=' + makeKey(end);
    }
    data_query = $.getJSON(url);
  </code></pre>