move geo detection to after pageload