mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 19:12:24 +00:00
Lazy load all images to increase page load times (references #275)
This commit is contained in:
@@ -526,3 +526,12 @@ $("textarea.wysiwyg-editor").summernote({
|
||||
minHeight: "300px",
|
||||
lang: __t("summernote_locale")
|
||||
});
|
||||
|
||||
function LoadImagesLazy()
|
||||
{
|
||||
$(".lazy").Lazy({
|
||||
enableThrottle: true,
|
||||
throttle: 500
|
||||
});
|
||||
}
|
||||
LoadImagesLazy();
|
||||
|
Reference in New Issue
Block a user