Has anyone attempted to use the defer
or async
attribute in the primary app <script> tag and using figwheel? Figwheel uses document.write
in the script and won't be executed by the browser
Any workarounds or ideas?
I've got an unhelpful warning from Figwheel, saying "Compile Warning", and the console says "Figwheel: Compile Warning - in". Any suggestions how to debug why the output is so terse?
I'm using lein-figwheel 0.5.8 and cljs 1.9.293
you probably have syntax error
so it can't compile
Yes, that I guessed 🙂
Ah! I had ancient figwheel-sidecar
. I have updated it to 0.5.8 and now the warning message is very detailed.
I'm still confused about all these weasels piggybacking on sidecars.
@samcf: eventually, you will probably want a clojure script to fingerprint assets and generate different html for dev and production. If you do that, you can add the async attribute then.