You're building a "find stores near you" banner. The right move, UX-wise, is to explain why you want the visitor's location before the browser's blunt little system dialog interrupts them — but only if that dialog hasn't already fired. If they already said yes, just get the location and skip th...

Source: [Dev.to](https://dev.to/parsajiravand/getcurrentposition-doesnt-just-check-it-prompts-52ap)

Sponsored