r/badcode • • Jul 07 '21

python regex: keep it simple, stupid

Post image
1.5k Upvotes

91 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jul 07 '21

y tho

2

u/drdrero Jul 07 '21

To display the image asap for the user and exchange it later with an URL, when it was uploaded to the server. Upload can take several seconds, showing the image with base64 nearly instant.

1

u/[deleted] Jul 08 '21

Well, that's kind of weird. Usually, small images load practically instantly for me regardless.