title: knockoutJS execute callback after foreach finishes rendering
body: <p>In my code i want to execute function or callback just after KnockoutJS <code>foreach</code> binding finishes rendering all the items</p>
  <p>i know i can do this simply by check if I'm at the last element (i found that here <a href="https://stackoverflow.com/questions/16385679/knockout-execute-code-after-the-last-item-has-been-rendered">execute code after the last item has been rendered</a>).<br />
  But using this my callback function 'll be called each time a new element or record is rendered.</p>
  <p>I want to execute my callback function only once (for performance).</p>
  <p><strong>UPDATE</strong></p>
  <p>another solution is here <a href="https://stackoverflow.com/questions/14254317/success-callback-after-knockout-js-finishes-rendering-all-the-elements?rq=1">success callback after knockout.js finishes rendering all the elements</a>. but again using this my callback function 'll be called each time a new element is rendered.</p>