Browse Source

feat: also try gif lazy loading

decentral1se 3 years ago
parent
commit
aeb18417e6
No known key found for this signature in database GPG Key ID: 3789458B3D0C410
  1. 2
      distribusi.go

2
distribusi.go

@ -570,7 +570,7 @@ func getHref(c *cli.Context, fpath string, mtype string) (bool, string, error) {
}
if stype == "gif" {
href = fmt.Sprintf("<img class='gif' src=\"%s\" />", fname)
href = fmt.Sprintf("<img class='gif' loading='lazy' src=\"%s\" />", fname)
} else {
thumb, err := genThumb(c, fpath, caption)
if err != nil {

Loading…
Cancel
Save