Better nsfw image loading #1

Closed
opened 2016-11-16 09:08:29 +00:00 by lambadalambda · 2 comments

At the moment, when something is tagged #nsfw, the nsfw replacement image is shown until clicked on instead of the real attachment.

One problem is that the nsfw image tag will unload, an new image tag will be created with the new image and it will load. This is a bit ugly, as the new image won't be loaded yet and so the picture will shrink to nothing, then grow to full size again.

Possible solutions:

  • Preload all images. Will lead to unnecessary traffic.
  • Do a 2-step image replacement: While keeping the image tag, change the src to a (preloaded) 'loading' image, then change to the real attachment.
At the moment, when something is tagged #nsfw, the nsfw replacement image is shown until clicked on instead of the real attachment. One problem is that the nsfw image tag will unload, an new image tag will be created with the new image and it will load. This is a bit ugly, as the new image won't be loaded yet and so the picture will shrink to nothing, then grow to full size again. Possible solutions: - Preload all images. Will lead to unnecessary traffic. - Do a 2-step image replacement: While keeping the image tag, change the src to a (preloaded) 'loading' image, then change to the real attachment.
Member

i think this could be closed too?

i think this could be closed too?
Author
Owner

yeah, just close them. if they are important they can be reopened.

yeah, just close them. if they are important they can be reopened.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pleroma/pleroma-fe#1
No description provided.