Title: Host js script locally
Last modified: October 5, 2021

---

# Host js script locally

 *  Resolved [Dan14](https://wordpress.org/support/users/dan14/)
 * (@dan14)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/host-js-script-locally/)
 * 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](https://wordpress.org/support/users/rvcybot/)
 * (@rvcybot)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/host-js-script-locally/#post-14961675)
 * 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](https://support.cookiebot.com/hc/en-us/articles/4405978132242-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](https://support.cookiebot.com/hc/en-us/articles/360003793854-Google-Tag-Manager-deployment#controlling)

Viewing 1 replies (of 1 total)

The topic ‘Host js script locally’ is closed to new replies.

 * ![](https://ps.w.org/cookiebot/assets/icon.svg?rev=3200631)
 * [Cookiebot by Usercentrics - Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode](https://wordpress.org/plugins/cookiebot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookiebot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookiebot/)
 * [Active Topics](https://wordpress.org/support/plugin/cookiebot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookiebot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookiebot/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Richard](https://wordpress.org/support/users/rvcybot/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/host-js-script-locally/#post-14961675)
 * Status: resolved