diff --git a/gatsby-browser.js b/gatsby-browser.js index 40fe90cb7b0..f4b184aec0e 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -128,7 +128,7 @@ export const onClientEntry = () => { }) addScript({ - src: 'https://static.deriv.com/scripts/cookie.js', + src: 'https://static.deriv.com/scripts/cookie-test.js', async: true, strategy: 'off-main-thread', }) diff --git a/gatsby-config.js b/gatsby-config.js index 66d97899414..14c85d693aa 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -46,7 +46,7 @@ module.exports = { partytownProxiedURLs: [ `https://assets.customer.io/assets/track-eu.js`, `https://assets.customer.io/assets/track.js`, - `https://static.deriv.com/scripts/cookie.js`, + `https://static.deriv.com/scripts/cookie-test.js`, `https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js`, ], plugins: [ diff --git a/src/common/utility.ts b/src/common/utility.ts index c481fee0e41..16c8665dd7a 100644 --- a/src/common/utility.ts +++ b/src/common/utility.ts @@ -253,7 +253,7 @@ export const redirectToTradingPlatform = () => // Function to manually add external js files. type TSettings = { - src?: 'https://static.deriv.com/scripts/cookie.js' + src?: 'https://static.deriv.com/scripts/cookie-test.js' text?: string async: boolean strategy?: 'off-main-thread'