learning promises and resolve

Learned to use promises and to use resolve to delay a page from being
loaded.
Promise and resolve error handling

Learned to pass a message when the promise fails, so that the logs have
an error to reference.