More reliable way of loading WP