wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Best settings with WPRocket and WPDiscuz


MikeQuinn
Posts: 22
Topic starter
(@mikequinn)
Eminent Member
Joined: 2 years ago

I searched but didn't find much. Has anyone experimented with the JS and CSS in WPDiscuz and figured out what can be minified, deferred, and delayed in WPRocket or other similar cache plugins?

I use most of the add ons (except Social Login and Captcha) and currently have minification exceptions set for CSS as:

/wp-content/plugins/wpdiscuz-advanced-likers/assets/css/wv.min.css
/wp-content/plugins/wpdiscuz-comment-author-info/assets/css/wcai-frontend.min.css
/wp-content/plugins/wpdiscuz-emoticons/assets/third-party/quill-emoji/quill-emoji.min.css
/wp-content/plugins/wpdiscuz-frontend-moderation/assets/css/style.min.css
/wp-content/plugins/wpdiscuz-report-flagging/assets/css/flag.min.css
/wp-content/plugins/wpdiscuz-user-comment-mentioning/css/style.css
/wp-content/plugins/wpdiscuz/assets/css/wpdiscuz-combo.min.css
/wp-content/plugins/wpdiscuz/themes/default/style.css

I have exceptions for javascript minifcation, deferred, delayed for:

/wp-content/plugins/wpdiscuz/utils/ajax/wpdiscuz-ajax.php
/wp-content/plugins/wpdiscuz-advanced-likers/assets/js/wv.min.js
/wp-content/plugins/wpdiscuz-comment-author-info/assets/js/wcai-frontend.min.js
/wp-content/plugins/wpdiscuz-emoticons/assets/js/wpdiscuz-smile.js
/wp-content/plugins/wpdiscuz-emoticons/assets/third-party/quill-emoji/quill-emoji.min.js
/wp-content/plugins/wpdiscuz-frontend-moderation/assets/js/script.min.js
/wp-content/plugins/wpdiscuz-media-uploader/assets/js/wmu-frontend.min.js
/wp-content/plugins/wpdiscuz-report-flagging/assets/js/flag.min.js
/wp-content/plugins/wpdiscuz-user-comment-mentioning/js/third-party/quill-mention/quill.mention.min.js
/wp-content/plugins/wpdiscuz-user-comment-mentioning/js/wpdiscuz-ucm.js
/wp-content/plugins/wpdiscuz/assets/js/wpdiscuz-combo.min.js
/wp-content/plugins/wpdiscuz/assets/(.*).js

I would like to think that some of this can be minified, deferred, or delayed but I am hoping somebody has already spent the time playing with it (of if Gvectors already has an idea).

Topic Tags
1 Reply
Asti
Posts: 3943
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

@mikequinn,

The CSS files can be removed for the minification for sure. 

Regading the js files. Please remove all those paths, then go to Dashboard > wpDiscuz > Settings > General Settings tab and disable the following two options:

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

You should not get any conflicts in this case. 

This FAQ should also be helpful for you: https://wpdiscuz.com/community/f-a-q/how-to-optimize-wpdiscuz/

Reply
Share: