• Resolved BeoR4

    (@rr44)


    Hello there,

    Phenomonal plugin, but I just noticed something I had not seen before because I am always logged in. JS minification works perfectly when logged in. But it breaks JS execution when browsing logged out like a normal anonymous public user.

    Does this make sense at all? It had me stumped most of yesterday on this so really hope you can point me in the right direction.

    My host and I wondered if it was a cache issue, but it is not. They have been very proactive indeed and they have tried:

    1) cache exclusions, didn’t work
    2) full cache bypass, again didn’t work
    3) disable CDN (which also offers caching)

    They were stuck at the same brick wall and asked for your input. This was after I tried experimenting with anything I could think of. I did diff compare the minified JS and saw adminbar and cookie setting differences in the code, that seemed normal and expected to my ignorant eye given one was logged in as admin and the other was anonymous and incognito cookieless.

    The settings I have are:

    https://anonm.gr/up/b35b.png (just noticed the tick to Optimise JS Code is cut off the graphic – it is ticked :))

    Many thanks again,

    R.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter BeoR4

    (@rr44)

    I should also add that totally unrelated JS from different providers and on different pages break, including Woocommerce premium extensions like composites.

    I don’t think it’s an exclusion thing, but will be gladly proved wrong! I had tried loading in head and try-catch wrapping, but this wacked up load times and indulged in expected render blocking. Try-catch seems at risk of being naughty or inconsistent across browsers so worries me.

    I am thinking of running without JS optmisation, but it seems like a mistake and I really want to beat this!

    Thanks again,

    R.

    Plugin Author Frank Goossens

    (@futtta)

    hard to say without more info I’m afraid, could be anything … so first and foremost; what JS errors do you get in your browser console?

    Thread Starter BeoR4

    (@rr44)

    Hi there,

    I just get “__gaTracker is not defined” which is google analytics moan where this happens

    Plugin Author Frank Goossens

    (@futtta)

    can you provide me with your URL (via mail if you want; futtta-at-gmail-dot-com) so I can have a quick look?

    Thread Starter BeoR4

    (@rr44)

    Ok, very weird… Monster Insights SEO was breaking everything. The tracking code had disappeared (don’t know why). I dismissed that as irrelevant, which it should have been, but was not. “Butterflys flap wings” in CMSs…

    Anyway, reauthorising the GA account link fixed it ?? Google Analytics by MonsterInsights was Yoast SEO (I think) so this problem may be or become more common. So I am glad that I posted this for community reference. I will amend tags to include

    Thank you greatly for your swift response Frank, especially on a Saturday. Stellar and stellar tool. Thanks also to Pressidium who have also been stupendous.

    Great weekends all,

    R.

    Moderator chriscct7

    (@chriscct7)

    Just a quick clarification in case anyone reads this in the future, MonsterInsights (a Google Analytics integration, not an SEO plugin) was formerly Google Analytics by Yoast. His Yoast SEO plugin is a separate plugin.

    -Chris

    Thread Starter BeoR4

    (@rr44)

    Thanks for clarifying Chris ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JS breaks only when logged out (logged in ok and host already tested)’ is closed to new replies.