mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 15:19:32 +00:00
Add lazy loading for images
This commit is contained in:
parent
b43bfc5d42
commit
7728899948
2 changed files with 5 additions and 7 deletions
|
|
@ -91,7 +91,7 @@ proc genDate*(pref, state: string): VNode =
|
|||
|
||||
proc genImg*(url: string; class=""): VNode =
|
||||
buildHtml():
|
||||
img(src=getPicUrl(url), class=class, alt="")
|
||||
img(src=getPicUrl(url), class=class, alt="", loading="lazy")
|
||||
|
||||
proc getTabClass*(query: Query; tab: QueryKind): string =
|
||||
if query.kind == tab: "tab-item active"
|
||||
|
|
|
|||
Loading…
Reference in a new issue