Share:
Notifications
Clear all

[Solved] How to optimize wpDiscuz  

  RSS

Asti
 Asti
(@asti)
Support member Support
Joined: 3 years ago
Posts: 819
06/07/2020 2:53 pm  

1. Limit the number of displayed comments

First, reduce the number of comments loaded with the initial page:

  • Navigate to Dashboard > Settings > Discussion admin page.
  • Find the "Other comment settings" section.
  • Change the value for the number of comments you want to display with the initial page load. Set 10-20 comment thread (parent comments) per page, it'll load approx 100-200 comments if there are 10 replies in a comment thread.

wpDiscuz comment thread per page

 

2. Initiate AJAX loading after page

Change the value of the "Comment List Loading Type" option. By default, comments are loaded with the page. The value for the option is set "Load with page".

Using either the "Initiate AJAX loading after page" or "Display [View Comments] button" option, you can keep your page loading speed high by disabling comments loading with the page. Once the page loading is complete, this option will initiate AJAX request and load comments separately, without affecting page loading speed.

wpDiscuz optiize comment loading speed

 

3. Display only parent comments and [view replies ∨] button

If this option is enabled only parent comment will be displayed. This option increases page load speed and keeps pages light. If a visitor wants to read replies he/she just needs to click on [view replies (2)] button located on all parent comments with at least one reply.

wpDiscuz Display only parent comments and view replies ∨ button
wpDiscuz 7 view replies option

 

4. Minify and Combine JS and CSS Files

You should make sure the following two options are enabled:

  • Combine JS and CSS Files to Optimize Page Loading Speed
  • Minify JS and CSS Files to Optimize Page Loading Speed

The options are located in the Dashboard > wpDiscuz > Settings > General Settings tab. 

Minify and Combine JS and CSS Files

 

Live Update

In addition, you should disable "Live Commenting and Notifications" features if you have hundreds of concurrent visitors and the server is not powerful. In case you need the live update feature, make sure it's disabled for guests and the update period is set 30 seconds or more. More information you can find in the documentation: https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/live-commenting-and-notifications/

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.


Share: