Wrapped the dispatchMessageEvent in a setTimeout of 1 milisec.. to make sure everything is executed in the webkit thread. With the new native bridge, the javascript executed might be done in other threads and this can lock the UI.
Merge pull request #92 from pentateu/topic/fix_post_message_webkit_thread

Topic/fix post message webkit thread