title: Google apps script running on a Google Site is slowwww
body: <p>I am trying to figure out why the following, fairly simple script is running so slowly. It just opens a Google sheet reads less that 10 rows of data and displays on a Google site. The script takes 20+ seconds to run. TIA.</p>
  
  <pre><code>function doGet() {
    var sOutput = "";
    var ss = SpreadsheetApp.openById("1sUnNnqmFM120Qa9ZWFvJQ6TLfM0V51Kj4zA");
  
    var data = ss.getActiveSheet().getDataRange().getValues();
  
    for (var j = 0; j &lt; data.length; j++) {
  
      sOutput = sOutput + data[j] + '&lt;br&gt;';
  
  
    }
    return HtmlService.createHtmlOutput(sOutput);
  
  
  }
  </code></pre>