More skeleton code for running preconnects on the main thread