• Resolved jkirrane

    (@jkirrane)


    I have been using WP Meteor on a site for several years with no issues. Today we ran into a problem that I believe was caused by the Javascript delay feature. Javascript execution was delayed while waiting on a call to the https://www.redditstatic.com/ads/pixel.js asset. It eventually was terminated after 1.2 minutes with an ERR_CONNECTION_REFUSED.

    Javascript worked as normal when using an ad blocker (which would have blocked this call altogether) and when WP Meteor was disabled.

    During the 1.2 minutes that the network request was open other scripts had the javascript/blocked attribute. As soon as the network request terminated those scripts were able to run.

    Is this expected functionality? The reddit pixel script tag is loaded through GTM and has an async attribute.

    This is no longer happening because the reddit pixel is loading quickly, but I’d like to identify the underlying problem to prevent this from happening in the future.

    I started to debug the minified WP Meteor JS code but figured it would be easier to ask you.

    Thanks.

    • This topic was modified 2 months, 1 week ago by jkirrane.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    HI @jkirrane ,

    Would you mind sharing the URL of the site so I can reproduce the issue? WP Meteor can be disabled

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    @jkirrane, according to your description, the problem was with reddit pixel being inaccessible. I’m 99.99% sure it was related to the reddit connection issues either on your side, or at reddit side. This is why it worked with adblocker.
    The only open question that bothers me is that pixels should be loaded async, so it shouldn’t affect page load.

    Thread Starter jkirrane

    (@jkirrane)

    Thanks @aguidrevitch. The site is not currently experiencing any issues. The problem was limited to the time that the reddit pixel wasn’t resolving. Like you said, I’m more worried about why that apparently blocked the rest of the scripts from loading. I’d like to make sure a single tracking asset doesn’t stop the site from functioning properly.

    The site is here – https://consumerrating.org/. The production site is a static site generated from a WordPress site, FYI. The reddit pixel is brought in through GTM.

    • This reply was modified 2 months ago by jkirrane.
    Thread Starter jkirrane

    (@jkirrane)

    Hello @aguidrevitch ,

    Do you have any further updates about this?

    Thanks,

    John

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    @jkirrane ,

    3.4.9 addresses the issue you flagged in the following way – if some 3rd party async script (non-render blocking) hangs, it times out in 1 second

    Thank you so much for reporting, I really appreciate your help!

    Best,
    Alex

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.