Delaying our Contact Fetch
Learn how to use the fetch method to add delays while loading in Marionette js applications.
We'll cover the following
So far, our app works as expected, but only because our data is loaded locally from web storage. Let’s add some artificial latency to the code fetching our contact instance and see what happens when we attempt to display a contact in our Show
submodule.
Adding a two-second delay
Let’s add a two-second delay before fetching a contact:
Get hands-on with 1400+ tech skills courses.