Is there any event we can hook into before the “When Page Load” event? Most frameworks have an “initialize” or “Pre-page load” event where we can do security related redirects etc. I’ve searched the forum but can’t see any evidence that there is one - but i want to check!
I don’t want that big delay of my (quite heavy) home page and “flash of content” for un-authenticated users before they are redirected. My hacky workaround is to have a fake homepage that has nothing on it and do the logic there - but I’d rather avoid this, because it’s a hack, and also Google punishes apps for initial page redirects (https://developers.google.com/speed/docs/insights/AvoidRedirects)