loading
preCode
<html:view>
<ajax:function name="data" url="/app/ajax" executeOnDocumentLoad="true">
    <ajax:preCode>
     alert('block declared as first instructions of ajax function');
    </ajax:preCode>
</ajax:function>
</html:view>