Wrapped drupalgap_loading_message_show() and drupalgap_loading_message_show() in a setTimeout before calling $.mobile.loading().
Removed the setTimeout calls from _theme_view().