Add placeholder to broken images #126
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "nevfy/selfprivacy.org:set-img-size"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
When images do not load properly #116, the layout shifts in unpredictable ways, because the size of the image container depends on the size of the image. It looks the worst when some parts have loaded and some parts have not.
There are different ways to add placeholders, but the
<object>
one does not rely on Javascript.Because the
docs
use{{< imgproc >}}
with a fixed size, the layout shift does not happen there.This pull request:
<img>
to an<object role="img">
on the main pagemax
andmin
sizes to illustrationsviewBox
(needed for the.svg
to be scaled properly inside of anobject
)WIP: Add placeholder to broken imagesto Add placeholder to broken images