title: How to use _spBodyOnLoadFunctionNames.push in SharePoint without a time delay?
body: <p>I am using SP2010 and need to run some javascript code to update an iframe when the page loads. Due to this, I have used the following method _spBodyOnLoadFunctionNames.push("myfunction") to execute the javascript function. The problem is that the page loads (and the original html/css elements are loaded), then the page reloads with the newly updated javascript code. Any ideas on how to eliminate the delay? Thanks.</p>