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

127
Views
Stencil JS globalscript is not completing before app loads

Need to initialize indexedDB before any component loads. Tried using the global script to do this but the global script default function does not complete before components load. For example if I set a timeout in the default function for 30 seconds the components still load and do not wait for the function to complete. Read documentation and states "The global script runs once BEFORE your library/app loads." This is not happening.

Need some suggestions on how to achieve my goal or possible reasons why global scripts is behaving as such. Tried setting up the global script both async and sync.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Was using setTimeout() to create a pause which is not correct. "setTimeout() is an asynchronous function, meaning that the timer function will not pause execution of other functions in the functions stack." Stencil globalscript is working as expected.

about 4 years ago · Juan Pablo Isaza Report
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!