This method is said to no longer work since 1.29.
This page explains how to set the initial state of a custom element. But the TOC is part of core, not custom.
This works, but wondering if there's a recommended way to set initial collapsed state
#toc > ul{display:none;}
Ideally, i want the TOC to remember the user's preference. CSS would break that.