Changeset 3150862
- Timestamp:
- 09/12/2024 01:12:50 PM (18 months ago)
- Location:
- fsdpcfl-contact-form-lazyload/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (7 diffs)
-
fsdpcfl-contact-form-lazyload.php (modified) (2 diffs)
-
includes/form-loader.php (modified) (1 diff)
-
package.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fsdpcfl-contact-form-lazyload/trunk/README.txt
r3150069 r3150862 1 === Contact Form Lazyload===1 === Lazyload for Contact Form 7 === 2 2 Contributors: 56degrees 3 3 Donate link: https://www.56degrees.co.uk/ … … 6 6 Tested up to: 6.6 7 7 Requires PHP: 7.4 8 Stable tag: 2.0. 08 Stable tag: 2.0.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Contact Form Lazyloadis a lightweight WordPress plugin designed to improve your website's performance by lazyloading Contact Form 7.12 Lazyload for Contact Form 7 is a lightweight WordPress plugin designed to improve your website's performance by lazyloading Contact Form 7. 13 13 14 14 == Description == 15 Contact Form Lazyloadis 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.15 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. 16 16 17 17 Example code: … … 20 20 ``` 21 21 22 = root-margin="0px" = 23 22 ``` 23 root-margin="0px" 24 ``` 24 25 **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: 25 26 - root-margin supports units such as px and %. … … 28 29 - *root-margin: 20px 50px 20px* - the form will load with margins of 20px on top, 50px on the sides, and 20px on the bottom. 29 30 30 = no-observer="true" = 31 31 ``` 32 no-observer="true" 33 ``` 32 34 **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. 33 35 … … 51 53 = Is this plugin compatible with all contact form plugins? = 52 54 53 Contact Form Lazyloadis designed to work with most popular plugin Contact Form 7. If you encounter any compatibility issues, please report them on the support forum.55 Lazyload for Contact Form 7 is designed to work with most popular plugin Contact Form 7. If you encounter any compatibility issues, please report them on the support forum. 54 56 55 57 = Can I customize the lazyload behavior? = … … 63 65 == Changelog == 64 66 67 = 2.0.1 = 68 * 2024-09-12 69 * Logging the error about nonce in the logs 70 65 71 = 2.0.0 = 66 72 * 2024-09-09 67 * -Changing form loading from plugin address to ?fsdpcfl68 * -Adding javascript minification of peaks69 * -Improved security by cleansing the data transferred by the user73 * Changing form loading from plugin address to ?fsdpcfl 74 * Adding javascript minification of peaks 75 * Improved security by cleansing the data transferred by the user 70 76 71 77 = 1.0.0 = … … 75 81 == Upgrade Notice == 76 82 83 = 2.0.1 = 84 * Logging the error about nonce in the logs 85 77 86 = 2.0.0 = 78 * -Changing form loading from plugin address to ?fsdpcfl79 * -Adding javascript minification of peaks80 * -Improved security by cleansing the data transferred by the user87 * Changing form loading from plugin address to ?fsdpcfl 88 * Adding javascript minification of peaks 89 * Improved security by cleansing the data transferred by the user 81 90 82 91 = 1.0.0 = -
fsdpcfl-contact-form-lazyload/trunk/fsdpcfl-contact-form-lazyload.php
r3150069 r3150862 1 1 <?php 2 2 /** 3 * Plugin Name: Contact Form Lazyload3 * Plugin Name: Lazyload for Contact Form 7 4 4 * Plugin URI: https://www.56degrees.co.uk/plugin-contact-form-lazyload 5 * Description: Contact Form Lazyloadis a lightweight WordPress plugin designed to improve your website's performance by lazyloading Contact Form 7.6 * Version: 2.0. 05 * Description: Lazyload for Contact Form 7 is a lightweight WordPress plugin designed to improve your website's performance by lazyloading Contact Form 7. 6 * Version: 2.0.1 7 7 * Author: 56 Degrees 8 8 * Author URI: https://www.56degrees.co.uk/ … … 17 17 define("FSDPCFL_PATH", plugin_dir_path( __FILE__ )); 18 18 define("FSDPCFL_URL", plugins_url('', __FILE__ )); 19 define("FSDPCFL_VERSION", '2.0. 0');19 define("FSDPCFL_VERSION", '2.0.1'); 20 20 21 21 if ( is_admin() ) { -
fsdpcfl-contact-form-lazyload/trunk/includes/form-loader.php
r3149211 r3150862 7 7 8 8 if ( ! wp_verify_nonce( $nonce, 'fsdpcfl-contact-form-lazy-page' ) ) { 9 die( esc_html__( 'Security Check Failed', 'Contact Form LazyLoad' ) );9 error_log( esc_html__( 'Security Check Failed', 'Lazyload for Contact Form 7' ) ); 10 10 } 11 11 -
fsdpcfl-contact-form-lazyload/trunk/package.json
r3149211 r3150862 2 2 "name": "fsdpcfl-contact-form-lazyload", 3 3 "version": "2.0.0", 4 "description": "=== Contact Form Lazyload=== Contributors: 56degrees Donate link: https://www.56degrees.co.uk/ Tags: cf7, contact form 7, wpcf7, lazy form, lazyload form Requires at least: 6.5 Tested up to: 6.6 Requires PHP: 7.4 Stable tag: 1.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html",4 "description": "=== Lazyload for Contact Form 7 === Contributors: 56degrees Donate link: https://www.56degrees.co.uk/ Tags: cf7, contact form 7, wpcf7, lazy form, lazyload form Requires at least: 6.5 Tested up to: 6.6 Requires PHP: 7.4 Stable tag: 1.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html", 5 5 "main": "src/index.js", 6 6 "devDependencies": {
Note: See TracChangeset
for help on using the changeset viewer.