title: Calling client-side function from google apps scrip
body: <p>How can I call a client-side function from google apps script (or if possible from google sheets)?</p>
  
  <p><strong>js.html:</strong></p>
  
  <pre><code>function clientFunc (a, b) {
      return a+b
  }
  </code></pre>
  
  <p><strong>code.gs:</strong></p>
  
  <pre><code>function server-func (x, y) {
      return somehowCall.clientFunc(x, y)
  }
  </code></pre>
  
  <p>in google.sheet cell <code>A3</code>:</p>
  
  <pre><code>= serverFunc (A1, A2) // or clientFunc (A1, A2)
  </code></pre>
  
  <p>How can I achieve it. Is it possible? If not, what is best approach to designate some of heavy loads to client-side since my apps are becoming so slow when executing on google servers using all apps script.</p>
  
  <p>PS: I know about <code>google.script.run</code> which runs server-side functions from client-side call. I want opposite of this functionality.</p>