Changes loading order to ensure cookies get loaded to page before requesting id