跳到内容

Lazyload for Contact Form 7

v2.0.2

56 Degrees · 2024年9月10日 上架

Lazyload for Contact Form 7 is a lightweight WordPress plugin designed to improve your website's performance by lazyloading Contact Form 7.

正在使用
40+
评分
暂无
累计下载
1,299
最近更新
2025年2月19日
需要 WordPress 6.5+已测试到 6.7.12PHP 7.4+

贡献者

Lazyload for Contact Form 7 is a lightweight WordPress plugin designed to improve your website’s performance by lazyloading Contact Form 7. This plugin delays the loading of contact forms until they are in the viewport, reducing initial load times and enhancing user experience.

Example code:
[lazy-contact-form-7 id="ID form" title="Title form" root-margin="0px" no-observer="false"]

root-margin=”0px”

root-margin=”0px” sets the size of the base margin, allowing the form to load sooner or later. Root-margin can be set in several ways:
– root-margin supports units such as px and %.
– root-margin: 100px – the form will load 100 px before the specified element.
– root-margin: -100px – the form will load 100 px after the specified element.
– root-margin: 20px 50px 20px – the form will load with margins of 20px on top, 50px on the sides, and 20px on the bottom.

no-observer=”true”

no-observer=”true” Is a solution aimed at developers who want to have control over exactly when the form is loaded. Setting this option to true will prevent the form from loading automatically on the page, and you will need to manually change the data-fsdpcfl-src attribute to src using JavaScript.

To enable the loading animation, add the active class to the fsdpcfl-loader class.

If you have any questions, you can contact us via email. tech@56degrees.co.uk

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums