Added callback to preprocess to allow holding up page rendering if waiting for data