diff --git a/pages/profile/profile.pixy b/pages/profile/profile.pixy index 94b0f040..ef2967ed 100644 --- a/pages/profile/profile.pixy +++ b/pages/profile/profile.pixy @@ -1,6 +1,6 @@ component ProfileHeader(viewUser *arn.User, user *arn.User, uri string) .profile - img.profile-cover(src=viewUser.CoverImageURL(), alt="Cover image") + img.profile-cover.lazy(data-src=viewUser.CoverImageURL(), data-webp="true", alt="Cover image") .profile-image-container.mountable.never-unmount ProfileImage(viewUser) diff --git a/utils/EmptyImage.go b/utils/EmptyImage.go index f7c3edf7..d35ff481 100644 --- a/utils/EmptyImage.go +++ b/utils/EmptyImage.go @@ -2,5 +2,6 @@ package utils // EmptyImage returns the smallest possible 1x1 pixel image encoded in Base64. func EmptyImage() string { - return "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" + return "" + // return "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" }