Hey everyone, hope you all are having a good time. So I'm now today in this session, I'll be talking about the topic, the Subtle Art of Subtle Loading. So without wasting any time let's get right on to it.
So just a small intro about me. So here I'm Nikit and I'm a Software Engineer at Postman. I mostly handle stuff around design systems at Postman. Postman's just a platform and Postman on the web. You can find me on Twitter or on GitHub. I'd love to connect, it would be a good chat.
All right so before diving in, I just want to like mention that our users are like, like we all know this fact that our users are very fast when it comes like using the UI. They don't want to, they don't want to wait for anything. They just want to use things in a flash and this is where a small bottleneck comes in because we as developers do want to cater to this request because we want the user to use our applications faster, but we have this small sort of drawback, because we have to fetch something from a server and that's why we show them some loading screens on the page which the users definitely don't like. And like this is sort of this bottleneck that we want to handle in a subtle way and that's going to be like an essential and sort of an essence of our talk, where like if you see this definition, which what Google gives you, the word subtle actually says like making use of clever and indirect methods to achieve something. And like that's how we're gonna play subtle with all these techniques.
So let's quickly look at like what are tips that I recommend to make our UX better. So tip number one would be to not to be sitting idle and like keep fetching something, whether it's UI or whether it's data, just keep on fetching. Don't wait for anything. And we'll be using a small technique for concurrent mode and suspense to handle this case. Second step is to what to load when. That is the question because we, although we are having many things in such a succession a succession, but we want to load a thing which is semantically having a better meaning if you load one thing first and then the other thing in the next round. So semantically the loading sequence should also matter, which should be done by a simple API called suspense list. And third is to be optimistic and we don't worry about all of these techniques. We'll cover them, cover them up in a demo, which we'll now see. So without wasting any time, let's quickly jump in.
Okay, so if you see here I have two applications, one running on synchronous mode and other one running in the concurrent mode or like you can say an async mode. So if I just give you a small introduction, just to be on the safe side. Yes, so there's a profile section. If I go to About Me, I see a nice loader and then the data fetches and my About Me section gets loaded. Similarly is the thing for a tweet. So there's a small button, I click on it and I see a next tweet.
Comments