• Resolved Dan14

    (@dan14)


    Very often the js script is blocking the main thread. In my website the blocking time exceeds 4,000ms. It occurs on a frequent basis.

    I am using a CDN, I would like to know how to host the js script locally or how can I reduce the blocking time from the js script?

    The script I am referring to is /uc.js

Viewing 1 replies (of 1 total)
  • Plugin Support Richard

    (@rvcybot)

    Hi Dan,

    You can’t locally host the uc.js script, there are a lot of dependencies that will break.

    You can drastically improve performance though if you disable the auto blocking functionality.
    You will need to manually ensure that scripts that require consent are blocked prior consent, for example by manually marking them up as described here: Manual Markup Guide

    You could also consider primarily using Google Tag Manager to implement scripts and use consent data to determine whether or not to fire tags. This is described here: Controlling cookies

Viewing 1 replies (of 1 total)
  • The topic ‘Host js script locally’ is closed to new replies.