Script loading waited on JS file
-
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.
- You must be logged in to reply to this topic.