
內容簡介
使用 Elementor 的一個主要缺陷是,用於部分和列的背景圖片在頁面加載時都會加載。使用 WP Rocket 或 BJ Lazy Load 等外掛不會解決這個問題。這個外掛程式可以解決這個問題。
這個外掛程序非常簡單。沒有額外的數據庫表或查詢,沒有難以理解的管理屏幕和選項,也沒有依賴項,除了頁面是使用 Elementor 設計的。它在前端注入了一些 JavaScript 和 CSS。CSS 隱藏了所有非動畫部分和列上的所有背景。JavaScript 檢測訪問者滾動並在他們靠近那些部分/列時開始加載背景圖片,使用 Elementor 打包的 WayPoints JS 库。
新增
添加了對以下 Elementor Pro 元素的支持:Flip Box 和 Slider-感謝 @dollhauss 提供的建議
外掛標籤
開發者團隊
② 後台搜尋「Lazy Load Elementor Background Images」→ 直接安裝(推薦)
原文外掛簡介
A major drawback to using Elementor is that the background images used for sections and columns are all loaded when the page loads. Using a plugin like WP Rocket or BJ Lazy Load will not solve this issue. This plugin fixes that.
The plugin is dead simple. No extra database tables or queries, no admin screens with difficult options to understand, and no dependencies other than that the page is designed with Elementor. It injects a little JavaScript and CSS on the front-end. The CSS hides all backgrounds on all non-animated sections and columns. The JavaScript detects the visitor’s scrolling and starts loading the background images as they get close to those sections/columns using the WayPoints JS library (which is packaged with Elementor).
New
support has been added for the following Elementor Pro elements: Flip Box and Slider – thanks for the idea @dollhauss
