Mastering JavaScript High Performance by 2015

Mastering JavaScript High Performance by 2015

Author:2015
Language: eng
Format: epub, mobi
Publisher: Packt Publishing


Closing the loop

Lastly, as we can see in this callback method example, it's usually not a great idea to use large hundred thousand scaled loops for performance reasons. Always look for better and more efficient ways to break up large loops and call other functions to help balance out the workload.

Also, I encourage you to check out JavaScript promises, an EcmaScript 6 feature. While not quite ready for discussion yet in this book, as at the time of writing, promises are still experimental. I encourage you, dear reader, to follow up and learn about what will be a successor to callbacks in JavaScript when it's finalized. You can learn more about promises on Mozilla's Developer Network site at https://developer.mozilla.org/en-US/.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.