Simple progressive rendering . This is achieved by considering the network transmission layer (TCP). Each packet received in order is delivered at the application level, which is displayed immediately. If you want to achieve this, you need to think about programming sockets in your application.
However, this is an old approach and actually a more intensive computing process. I personally prefer working with a stub. The stub image is displayed at the beginning, and an immediate flow begins with the url connecting and loading (manager or cache). Once the download is complete, you will be returned to your main stream to update the photo. It is more convenient.
Please correct me if I am mistaken in any sense.
source share