-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
readme.txt
executable file
Β·190 lines (118 loc) Β· 5.09 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
=== Lazy Load for Comments ===
Contributors: joelcj91,duckdev
Tags: lazy load, lazy comments, conditional comments, lazyload comments, lazyload wordpress comments, comments
Donate link: https://paypal.me/JoelCJ
Requires at least: 4.0
Tested up to: 5.2
Stable tag: 1.0.10
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Lazy load default WordPress commenting system on scroll or click. Improve page speed.
== Description ==
Lazy load WordPress default commenting system without any complex configurations. Get rid of unwanted HTTP requests and get your page speed back.
> #### Lazy Load for Comments - Features & Advantages
>
> - Load comments only when required.<br />
> - **Improve page loading speed.**<br />
> - Reduce no. of HTTP requests!<br />
> - Lazy loading comments gravaters.
> - Genesis support.
> - Divi support.
> - **Translation ready!**<br />
> - No complex configurations (Just one setting).<br />
> - Developer friendly (Hooks available for altering).<br />
> - Follows best WordPress coding standards.<br />
> - Of course, available on [GitHub](https://github.com/joel-james/lazy-load-comments)<br />
>
> [Installation](https://wordpress.org/plugins/lazy-load-for-comments/installation/) | [Screenshots](https://wordpress.org/plugins/lazy-load-for-comments/screenshots/)
== Installation ==
= Installing the plugin - Simple =
1. In your WordPress admin panel, go to *Plugins > New Plugin*, search for **Lazy Load for Comments** and click "*Install now*"
2. Alternatively, download the plugin and upload the contents of `lazy-load-for-comments.zip` to your plugins directory, which usually is `/wp-content/plugins/`.
3. Activate the plugin
4. Go to Discussion settings.
5. Select the lazy load method (Scroll or Click).
= Need more help? =
Feel free to [open a support request](http://wordpress.org/support/plugin/lazy-load-for-comments/).
= Missing something? =
If you would like to have an additional feature for this plugin, [let me know](https://duckdev.com/support/)
== Frequently Asked Questions ==
= What is the use of this plugin? =
Plugin name says everything. This plugin prevents the comments from loading automatically when page/post is loaded. Instead, this plugin will lazy load the comments when user scroll down to comments section or clicking on comment button.
= I don't need loader gif image, can I disable it? =
Yes, you can!. Just add following line to your theme's functions.php or in your custom plugin.
`
add_filter( 'llc_enable_loader_element', '__return_false' );
`
= How can I change the button text? =
Just add following line to your theme's functions.php or in your custom plugin.
`
add_filter( 'llc_button_text', function () {
return 'My Custom Button Text';
});
`
= How can I add a custom class to the button? =
Add following line to your theme's functions.php or in your custom plugin.
`
add_filter( 'llc_button_class', function () {
return 'custom-class-1 custom-class-2';
});
`
= Can I use something else instead of loader image? =
Yes! There is a filter for this too! Add following line to your theme's functions.php or in your custom plugin.
`
add_filter( 'llc_loader_element_content', function () {
// Use any html element.
return '<p class="custom-loader">Loading... Please wait.</p>';
});
`
= How to lazy load only only when there specific (or more) no. of comments? =
You can simply use below filter to set the minimum no. of comments to lazy load.
`
add_filter( 'llc_can_lazy_load_minimum_count', function () {
// Lazy load only if there are 10 or more comments.
return 10;
});
`
= I need more details =
Please [open a support request](http://wordpress.org/support/plugin/lazy-load-for-comments/).
== Other Notes ==
= Bug Reports =
Bug reports are always welcome. [Report here](https://duckdev.com/support/).
== Screenshots ==
1. **Settings** - Select lazy load method.
== Changelog ==
= 1.0.10 (24/07/2019) =
- π¦ Added support for Divi.
= 1.0.9 (16/03/2019) =
- π Fixed issues with scroll load in Woo reviews.
= 1.0.8 (14/03/2019) =
- π¦ Added Woo reviews support.
= 1.0.7 (14/03/2019) =
- π Fixed issues with WP 5.1.
- π Fixed issues with Woo reviews.
= 1.0.6 (27/01/2019) =
- π¦ Added Genesis support.
= 1.0.5 (19/01/2019) =
- π¦ Added new filter to set minimum no. of comments to lazy load.
- π Lazy load only when there are comments.
- π Fixed empty comments when comments are closed.
= 1.0.4 (22/12/2018) =
- π Removed nonce (nonce is not required for frontend [get requests.](https://konstantin.blog/2012/nonces-on-the-front-end-is-a-bad-idea/)).
- π Changed to GET ajax request.
- π Fixed comments respond link.
= 1.0.3 (03/04/2017) =
- Fixed wrong value return in bot checking function.
= 1.0.2 (08/02/2017) =
- Added custom filters.
- Added loader while comments are being loaded.
- Disabled lazy load for Search Engine crawlers.
- Scroll to comment if #comment id found in url.
- 100% translation ready.
= 1.0.0.1 (19/11/2016) =
- Bug fix on PHP v5.3 - Parse error.
= 1.0.0 (18/11/2016) =
- First version.
== Upgrade Notice ==
= 1.0.10 (24/07/2019) =
- π¦ Added support for Divi.