Skip to content

Commit

Permalink
Lazy load images. (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahboyce authored Mar 29, 2024
1 parent 427d1fe commit fb34ccf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions home/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from __future__ import annotations

from wagtail.images.apps import WagtailImagesAppConfig


class CustomImagesAppConfig(WagtailImagesAppConfig):
default_attrs = {"decoding": "async", "loading": "lazy"}
2 changes: 1 addition & 1 deletion indymeet/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"wagtail.users",
"wagtail.snippets",
"wagtail.documents",
"wagtail.images",
"home.apps.CustomImagesAppConfig",
"wagtail.search",
"wagtail.admin",
"wagtail",
Expand Down

0 comments on commit fb34ccf

Please sign in to comment.