Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

167
Visualizações
amp-carousel 0.2 shows the error "startLayout called but not LAYOUT_SCHEDULED currently: 2" when changing the screen resolution

When the screen resolution is changed, the console displays the message startLayout called but not LAYOUT_SCHEDULED currently: 2 and amp-img element is returned. If you stop and reload the page, the error disappears until you change the screen resolution again.

This only happens in amp-carousel version 0.2, in version 0.1 everything works without errors, but the sliders transition is too fast. The error appears for dynamic attribute value ( if width = "auto" or if layout = "responsive" and so on ) with autoplay and type="slides".

For example:

<amp-carousel
  type="slides"
  layout="fixed-height"
  height="300"
  width="auto" 
  delay="2000"
  autoplay>
 ...

or

<amp-carousel
  type="slides"
  layout="responsive"
  height="300"
  width="600" 
  delay="2000"
  autoplay>
 ...

What can I do to fix this problem or is it a bug with the amp version?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda