use dynamic dependency codepath for html_document