From a25f73a099f3562bc39723102e4df5d307d153fa Mon Sep 17 00:00:00 2001 From: pronist Date: Thu, 27 Jun 2024 19:00:08 +0900 Subject: [PATCH] Set preload after load --- assets/js/vendor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/vendor.js b/assets/js/vendor.js index 5c2c1e5..5571503 100644 --- a/assets/js/vendor.js +++ b/assets/js/vendor.js @@ -1,5 +1,7 @@ /** @see https://github.com/aFarkas/lazysizes */ -import 'lazysizes' +import lazySizes from 'lazysizes' + +lazySizes.cfg.preloadAfterLoad = true /** @see https://highlightjs.org */ import hljs from 'highlight.js'