How to force a .trigger(...) immediately?
===

I have a button that does some heavy computation and in between the computation-steps I want to refresh the page. 

**JavaScript:**

	.on('click', function() {
		// compute something
		
		jQuery('#page')
			.trigger('pageshow')
		;
		
		// compute something
		
		jQuery('#page')
			.trigger('pageshow')
		;
		
		// compute something
	}

This sadly doesn't work, because the `pageshow`-event is triggered, after `.on(click)` has finished.

Is there any way to force the execution of `.trigger(...)` immediately?