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

114
Visualizações
React widget is not mounted on iOS

I'm creating a widget for 3rd-party sites. It correctly loads from S3 on desktop and Android, but there's an issue with iOS. The widget is not loading in both Safari and Chrome, and there are not error messages in a console. I think that there might be an error in the loading script:

<script>
  ;(function(document, url, apiKey) {
    var link = document.createElement('link')
    link.rel = 'stylesheet'
    link.href = `${url}/index.css?apiKey=${apiKey}`
    var head = document.getElementsByTagName('head')[0]
    head.parentNode.insertBefore(link, head)

    var script = document.createElement('script')
    script.src = `${url}/index.js?apiKey=${apiKey}`
    script.async = true
    var entryScript = document.getElementsByTagName('script')[0]
    entryScript.parentNode.insertBefore(script, entryScript)
  })(document, 'http://localhost:8080', '31805389-c240-4d42-8ff9-2cc30f753212')
</script>

The link to a repo with the demo: https://github.com/pshepelenko/widget-demo-public

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