• Resolved Pedro

    (@pedrodn)


    I tried adding a filter that was suggested in this topic, but it doesn’t work. It still loads in an async manner. Also, is there a filter to add fetchpriority=low to the script?

Viewing 1 replies (of 1 total)
  • Plugin Support Michelle D.

    (@devmich)

    Hi @pedrodn,

    Thanks for reaching out.

    Our recommendation is allowing MonsterInsights scripts to load as soon as possible for the most accurate Google Analytics tracking.

    In case it helps to know, MonsterInsights itself aims to add as little overhead as possible on the frontend for your visitors.

    We load the Google Analytics script directly from Google because it’s usually cached in your visitors’ browsers, as it’s used on millions of sites. Besides that, our frontend tracking features script is optimized and very specific tracking functionality is only loaded where needed.

    On the admin side, our interface is fully built using a modern JavaScript framework that makes it fast to load async without using up a lot of resources.

    That being said, I quickly tested the previously shared code snippet, and didn’t run into any issues with the filter. It replaced the default async attributes with defer. Would you be able to share the code snippet being added to your website, as well as more details on how it’s currently being implemented?

    Adding fetchpriority=low doesn’t currently apply to scripts, it is primarily intended for images and CSS resources.

    Thank you.

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