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

106
Views
Detectar el inicio y el final de una tarea de procesamiento en JavaScript

Estoy haciendo la edición de imágenes usando el lienzo. Considere el siguiente código:

 ctx.drawImage( // <-- start point of the task which causes the browser to lag image, crop.x * scaleX, crop.y * scaleY, crop.width * scaleX, crop.height * scaleY, 0, 0, crop.width * scaleX, crop.height * scaleY, ); // <-- end of the task

¿Hay alguna manera de que pueda detectar el punto de inicio y final de un proceso intensivo? Mi objetivo es mostrar un indicador de carga, algo así como Photoshop cuando abres una foto grande. Y, con suerte, mantener toda la página receptiva y no retrasarse por completo.

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!