If the ClojureScript script file is loaded in the <head>, then it will run before the document is loaded, and you get the error message:
Uncaught TypeError: Cannot read property 'appendChild' of null
at day8$re_frame$trace$panel_div (trace.cljs:222)
at day8$re_frame$trace$inject_devtools_BANG_ (trace.cljs:229)
at preload.cljs:11
If the ClojureScript script file is loaded in the
<head>
, then it will run before the document is loaded, and you get the error message:I'm not sure what the best approach is to handle this. https://stackoverflow.com/questions/9916747/why-is-document-body-null-in-my-javascript has more info on this.