Reorder some init operations to hopefully better load styles.