my17560 / dokuwiki-template-readthedokus

"Read the Docs" flavored DokuWiki template
MIT License
14 stars 11 forks source link

Sidebar doesn't work when defer_js is disabled #8

Closed fthommen closed 3 years ago

fthommen commented 3 years ago

Hi,

it seems that when the feature flag "defer_js" is disabled, the sidebar toc/highlighting is not working. Unfortunately not all plugins are compatible with "defer_js" yet.

Is there a way to have the sidebar working even with a disabled "defer_js"?

my17560 commented 3 years ago

Problem confirmed.

By disabling the "defer-js" option, the theme script starts executing before the sidebar is loaded. I fixed it to execute when contents are loaded. Please Re-install the theme.

Thanks for your info. It really helped me fix this problem. It would take much longer to fix without it.

fthommen commented 3 years ago

You are awesome. After I figured out, that the sidebar must really only contain "strong" ( Title ) formatting and no headers (== Title ==) to work properly :-), the fixed version worked just fine with defer_js disabled. Thx again (next question is coming already :-)