pradyunsg / furo

A clean customizable documentation theme for Sphinx
https://pradyunsg.me/furo/quickstart
MIT License
2.65k stars 304 forks source link

Reverse order of loading page content and scripts #704

Closed fwitte closed 11 months ago

fwitte commented 1 year ago

As proposed in discussion #703

fwitte commented 11 months ago

Somebody told me how to use javascript correctly, not needed anymore ;).

pradyunsg commented 11 months ago

Awesome -- I hadn't had time to figure out why exactly you needed this. Deferring until the document load and then performing node transforms should give you the behaviours you want. :)

fwitte commented 11 months ago

No worries, that is exactly what the other person told me to do :) I just never used js before and my first solution required to call a function inside the announcement part, which was not available when the page is built because the custom js scripts were loaded after the contents (I did that because I did not know I could call it on loading the window...)

Have a nice weekend and thanks for the awesome work!