Using good ol'-fashioned cookies! The JS sets it, and then Rails reads it on pageload. That way, there's no flash of content for it to load in after JS loads.
My intent is to next add behavior to save this state across pageloads, for power users to not have to always reopen it!