It looks like the profile tabs (activity, profile, messages, notifications, settings, etc.) are eventually going to be ajax-driven, based on the existence of (unused) ‘ajax’ classes down in the markup.
But UNTIL that happens 😉 .. I’m trying to figure out a way to scroll the viewport down to the relevant content when a user clicks on one of the tabs. So if a user visits /username/profile/edit/ or /username/messages/ or /username/settings/, the window jumps down to the lower area of the page below the upper profile area.
It’s easy enough to add anchors in the lower section of the page, but I’m looking for some advice on how to check for the the 15-20 pages (or so) that would need this functionality, and how to trigger the scroll.
Perhaps a jquery scrollTo based on a check of the URL? I feel like there has to be some more performance-savy way of doing this? Any suggestions?