Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Javascript: Timers

No description
by

Jennifer Refat

on 1 April 2015

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Javascript: Timers

Secrets of the JavaScript Ninja:
Timers!

Jennifer Refat
Why Timers?
Large JS apps
Responsive/interactive apps
Efficiency
Timers: Not a Feature
Timers are available through browser implementation;
not a JS feature!
JS is Single Threaded
Why is this?!
Single vs. Multi-Threaded
Available Methods
setTimeout
setInterval
clearTimeout
clearInterval
Create vs Destroy
Single use vs cycle (sorta)
Interval lengths
Based on browser implementation
Fastest!
Opera
Slowest!
Internet Explorer...
Single vs. Multi-Threaded
Multi-threaded
- Improved responsiveness, faster, prioritization

Single threaded
- Easier to debug and program,
good for smaller applications
How to Structure Large Apps
Breaking large tasks into smaller tasks to improve responsiveness

Central timer control
Thanks!
Full transcript