Skip to content

Conversation

@ViniciusCosta126
Copy link

@ViniciusCosta126 ViniciusCosta126 commented Apr 29, 2021

It generates a performance problem with this feature at lighthouse, webpagetest and GTMetrix reports. It is delaying the first paint content at 700ms. The VTEX own app Cookie-script loads a blocking .js, which stops the site from loading until resolved.”

@ViniciusCosta126 ViniciusCosta126 requested a review from a team as a code owner April 29, 2021 12:22
@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Apr 29, 2021

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@ViniciusCosta126 ViniciusCosta126 requested review from RodrigoTadeuF, icazevedo and igorbrasileiro and removed request for a team April 29, 2021 12:22
@vtex-io-docs-bot
Copy link

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

@filipewl
Copy link

filipewl commented Nov 7, 2023

Olá @ViniciusCosta126!

Acredito que já que estamos falando de um tipo de script de consentimento de cookies, ele precisa ser executado de maneira síncrona e antes dos demais scripts.

Tentei buscar na documentação do Cookie Script por recomendações sobre isso e encontrei esse artigo. Infelizmente ele não menciona se o script pode ser carregado assincronamente.

Procurei saber como seria pra outros serviços parecidos e me lembrei do OneTrust. Encontrei essa documentação que não aconselha o carregamento do script de forma assíncrona:

The AutoBlock may not be loaded asynchronously on the page. This means that content rendering is paused until the OtAutoBlock script finishes loading and executing. This is a requirement so that OneTrust can intercept any scripts being added to the page before they load and mark them for consent actioning. If the script were loaded asynchronously, scripts would be able to load without consent.

O que você acha? Uma alternativa que foi recomendado pelo Cookie Script é tentar fazer a integração via GTM, é algo que serve pro seu caso?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants