I have web where content depends a lot on users geolocation. So it would be really nice to use W3C Geolocation API. When I do that, user is asked by browser authorization bar whether allow geolocation or not. I am fine with this authorization - question is, when to ask for it.
I see 2 options:
- ask for geolocation immediately (during opening first page)
- ask for geolocation on user's request (user clicks on something like "please locate me")
Option 1. would be definitely better for functionality and user's comfort but I am not sure if common web user won't be scared by browser's authorization bar. From this reason I currently prefer option 2.
What is your experience? Does exists "best practices" for this?