Fork me on GitHub
#lein-figwheel
<
2017-01-17
>
samcf06:01:57

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

samcf06:01:23

Any workarounds or ideas?

dottedmag09:01:15

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?

dottedmag09:01:30

I'm using lein-figwheel 0.5.8 and cljs 1.9.293

ejelome09:01:54

you probably have syntax error

ejelome09:01:01

so it can't compile

dottedmag09:01:04

Yes, that I guessed 🙂

dottedmag09:01:57

Ah! I had ancient figwheel-sidecar. I have updated it to 0.5.8 and now the warning message is very detailed.

dottedmag09:01:45

I'm still confused about all these weasels piggybacking on sidecars.

isak21:01:39

@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.