Fork me on GitHub
#re-frame
<
2018-01-07
>
genekim18:01:10

Good morning, all! I’m starting a new re-frame project (because I’m utterly in love it, after using it on a previous project), and chose to begin it with lein new re-frame test. And surprisingly, when started with lein figwheel, nothing renders in Chrome — it does, however render with Safari. In Chrome, there’s an error on in the console: “Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help…” Here’s a screenshot — any hints? Thanks in advance!!!!

genekim18:01:45

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help,

manutter5118:01:29

That seems to be just a warning, shouldn’t be preventing your app from rendering

genekim18:01:45

@manutter51 — renders in Safari, nothing renders in Chrome… Hmmm… (Your expression in your picture is exactly the expression I’m making right now. :)

manutter5118:01:52

Yeah, it looks odd. You don’t have any ad-blocker software in Chrome, do you?

genekim18:01:34

…thanks for noting that it’s not a fatal Chrome error… but… trying to figure out how to get something running… maybe going back to older version of re-frame/cljs/reagent, that I used in a previous project? (No ad blockers, either…)

manutter5118:01:15

I’m running a re-frame app right now in Chrome (v.63.0.3239.84) and I’m not getting what you’re getting.

manutter5118:01:52

Seems to me I have seen that warning message before.

genekim19:01:33

OMG. Just repeated all the steps from a different laptop, and it now works in Chrome, as it’s supposed to … Existential dread as I ponder “what in the world is different about the first laptop? Browser? Lein? Clojure? Dependencies?” Any advice on how to wipe the slate as clean as possible?

manutter5119:01:16

Do you have the cache turned off in Dev Tools?

genekim19:01:08

…ooh… promising!!!! I’ll check! Thank you!!!!

genekim19:01:31

@manutter51 Thank you so much! That worked!!! (I right-clicked Reload, and did Hard Reload and Empty Cache.) On the one hand, I’m so elated and relieved that it worked. On the other hand, I feel a bit of despair that I understand so little about the browser — do you recommend turning off caching entirely?

manutter5119:01:29

Or in other words, it only disables the cache when you have Dev Tools open.

genekim19:01:18

That’s really awesome, @manutter51 — I think sacrificing speed is a small price to pay to reduce frequencies of utter bewilderment I felt 1 hour ago!!! 🙂 Thanks again!!!!

genekim19:01:54

(Seriously, of all the things I set out to work on this morning, fiddling with the browser was NOT one of them! :)

manutter5119:01:39

Heh, I’ve been there.

manutter5119:01:51

What’s worse is when you know about disabling the cache, you always disable the cache, but you forgot you’re on a different laptop now and you never actually checked the little checkbox on this one facepalm

manutter5119:01:10

not that I’m speaking from experience or anything…