What causes a message to be posted while the attached files haven't finished uploading?

I think if you click the reply button too quickly (or while the image is loading), it will end up doing this issue. On my end, I can’t click Reply until it is done uploading.

Exactly how I tried to produce it just right now.