How to check if DOM loaded (/t/topic-) for minor jquery tweak?


(DenisD) #1

We have minor jquery tweak for changing view of topic (if it belongs to one specific category) client-side. Jquery code is added client side in
www.examplediscourseurl.com/admin/customize/css_html/ID/head-tag

with client-side api.

is there any way to check when DOM is loaded (client-side only)?
Putting script in body tag doesnt help, as it is NOT reloaded after page navigation.

thanks