The search functionality needs JavaScript enabled
handle all events from queue, if any (call from UI thread only)
void handlePostedEvents();