The Marketo Forms 2.0 .loadForm allows you to use callback as your fourth argument. Just add your function there.
From API Link
.loadForm(baseUrl, munchkinId, formId [,callback])
Example
MktoForms2.loadForm("//app-sjqe.marketo.com", "718-GIV-198", 621, function(form){
If you use .whenReady(callback) , if "there is already a form that will be ready when this function is called, the passed callback will be called immediately", which may not be the way you want.
(@Murtza works in Marketo, so maybe his answer is more official, but that didn't work for me)
source share