This was developed so because we have to wait for the dock movement finishes. Maybe you want to remove the asynchronous call here 

https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/js/dock.js#L170 and here
https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/js/dock.js#L246