Wrap script and style enqueue in a filter that defaults to false
Add a filter to generate a TOC on pages only