Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### Appc Performance tips
- - More efficient for repeating timers to use setInterval that repeating a setTimer. You'll get better efficiency and scheduling and less overhead.
- - 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.
- - Use JSON.parse instead of eval.
- - 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