I’ve added page transitions to my project using Barba.js. I don’t understand Barba well enough to explain how it technically works, other than saying “push state ajax”.
I set it to only load and animate the main content section, and keeping the header static. This means the “active” class I normally add to my navigation item in PHP does not update between ajax reloads.
How can I emulate checking if $page->isOpen() via a javascript callback function?