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

95
Views
How to display messages before executing

In my javascript project, there are some functions, which take a while to run. I want to display "something" to the user, that his/hers process has already started.

When I try the usual suspects like showing elements (e.g. div panels), those elements get only rendered, after everything is finished.

The only element, that would show up before the function is executed, is an "alert()".

e.g.

document.getElementById("button").addEventListener("click", function (){
        
        show_message("starting");

        this_function_takes_forever();

        show_message("done");
        
    });

in the code above, after the user clicked the "button", there would be a pause aka "freezing". After that only the message "done" would pop up.

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!