lein-figwheel

samcf 2017-01-17T06:16:57.000431Z

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

samcf 2017-01-17T06:17:23.000432Z

Any workarounds or ideas?

dottedmag 2017-01-17T09:12:15.000434Z

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?

dottedmag 2017-01-17T09:12:30.000435Z

I'm using lein-figwheel 0.5.8 and cljs 1.9.293

2017-01-17T09:16:54.000437Z

you probably have syntax error

2017-01-17T09:17:01.000438Z

so it can't compile

dottedmag 2017-01-17T09:17:04.000439Z

Yes, that I guessed 🙂

dottedmag 2017-01-17T09:17:57.000440Z

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

dottedmag 2017-01-17T09:18:45.000441Z

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

isak 2017-01-17T21:17:39.000442Z

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