On and off, I've tried to defer my javascript. And the only thing that stops me? WPDiscuz. Every. Single. Time. I've excluded every WPDiscuz JS file. ( https://wpdiscuz.com/community/troubleshooting/best-settings-with-wprocket-and-wpdiscuz/#post-7102)
It has got to be pulling from other JS. Please, for the love of God and before I frisbee my laptop out of my 18th floor office, let me (us) know what other JS is being used. I beg of you.
It's usually the comment boxes that get taken out. Other settings can also mess with the photo/file upload add on, but I've got that one sorted.
Hi,
We may suggest you enable the "Combine JS and CSS Files to Optimize Page Loading Speed" option and just exclude the following file:
wpdiscuz/assets/js/wpdiscuz-combo.min.js
The "Minify JS and CSS Files to Optimize Page Loading Speed" option also can be enabled.
Both options are located in the Dashboard > wpDiscuz > Settings > General Settings tab.
If it doesn't help you to solve the issue, please clarify a bit the problem you've faced.
Bottomline: I'm good with WPDiscuz NOT being deferred. I'm not good with not being able to defer any of my other javascript that plays happily being deferred with other functions. But there is obviously a dependency there that WPDiscuz is using that isn't one of WPDisuz's core JS files. And that's what I need to know. Is there some core Wordpress JS file that WPDiscuz is leveraging? That/those are the additional one(s) I need to exclude and I/we need to know what those are.
This is one of the culprits:
wp-content/plugins/wpdiscuz/assets/third-party/quill/quill.js
Found it by going through all of the JS shown in Chrome Dev Tools.
I had built my initial list from what perfmatters was showing and it didn't show this one.