lazy load images on homepage
This commit is contained in:
parent
124882da9a
commit
902e1be59c
2
main.go
2
main.go
@ -150,7 +150,7 @@ func (this *Application) Homepage(w http.ResponseWriter, r *http.Request) {
|
||||
data-sort-mt="`+fmt.Sprintf("%d", repo.UpdatedAt.Unix())+`"
|
||||
>
|
||||
<td>
|
||||
<a href="`+pageHref+`"><img class="homeimage" src="`+html.EscapeString(`/:banner/`+url.PathEscape(repo.Name))+`"></div></a>
|
||||
<a href="`+pageHref+`"><img class="homeimage" loading="lazy" src="`+html.EscapeString(`/:banner/`+url.PathEscape(repo.Name))+`"></div></a>
|
||||
</td>
|
||||
<td>
|
||||
<strong>`+html.EscapeString(repo.Name)+`</strong>`+html.EscapeString(normalisedDesc)+`
|
||||
|
Loading…
Reference in New Issue
Block a user