I'd like to have a set of widgets load for outside users, but if user is inside I'd like to include an additional widget (or conversely, load them all on the inside but skip a particular widget if the user is on the outside). I was thinking I could maybe use sessionStorage and set a variable indicating if the user is in or out and then check that variable when the widgets load. Might there be a pitfall in using the logic below or with the idea in general? If not, where would be the best place to call detectIntranet()?