only load renderer in browser