Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!