For those who haven’t heard of Promise in JavaScript before, it is a function to make JavaScript wait for something before running other operation. It is implemented in modern browsers, or just use one of those Promise polyfill.
For those who haven’t heard of Promise in JavaScript before, it is a function to make JavaScript wait for something before running other operation. It is implemented in modern browsers, or just use one of those Promise polyfill.