Guest User

Untitled

a guest
Jul 19th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #### Appc Performance tips
  2.  
  3. - More efficient for repeating timers to use setInterval that repeating a setTimer. You'll get better efficiency and scheduling and less overhead.
  4. - Cancel your timers. Calling setInterval which will return a timer handle. to cancel a timer clearTimeout or clearInterval and pass the handle returned by either setTimeout or setInterval.
  5. - Use JSON.parse instead of eval.
  6. - Don't re-use XHR Objects. It's not safe and they're not meant to be re-usable.
Add Comment
Please, Sign In to add comment