I am trying to log in with my Twitter and Google accounts. It is successfully logged in but I have to refresh the page manually. However, I have no idea why Facebook no this issue!
Do you have any caching plugins installed on your website?
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
yes, the original caching plugin from the theme
Please try to deactivate it and check again.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
@asti however, it is the core feature that I can't deactivate but there I can exclude the JS files without caching them.
You should exclude the following two files from your caching system:
/wp-content/plugins/wpdiscuz/assets/wpdiscuz-social.js /wp-content/plugins/wpdiscuz/assets/wpdiscuz.js
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Are you sure the JS files' location is correct?
Because I find those two JS files are in the following location:
/wp-content/plugins/wpdiscuz/assets/JS/wpdiscuz-social.js
/wp-content/plugins/wpdiscuz/assets/JS/wpdiscuz.js
yes, sorry, the correct paths are:
/wp-content/plugins/wpdiscuz/assets/js/wpdiscuz-social.js
/wp-content/plugins/wpdiscuz/assets/js/wpdiscuz.js
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
I use the following code to exclude the JS files but the result is no different!
add_filter('hpp_can_merge_file', function($ok, $handle, $ext, $handles){
if( in_array($handle,['wpdiscuz-combo-js', 'wpdiscuz-social-js', 'wpdiscuz-js', 'wpdiscuz'])) return 0;
return $ok;
}, 10, 4);
add_filter('hpp_allow_delay_asset', function($ok, $url){
if(strpos($url, 'plugins/wpdiscuz/assets/js/wpdiscuz-combo.min.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/js/wpdiscuz-social.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/js/wpdiscuz.js')!==false) return false;
return $ok;
}, 10, 2);
Have you deleted all kind of caches after you put the code?
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
I am trying to ignore more JS files but I am getting the same result.
add_filter('hpp_can_merge_file', function($ok, $handle, $ext, $handles){
if( in_array($handle,['wpdiscuz-cookie-js','autogrowtextarea-js', 'wpdiscuz-ajax-js', 'wmu-colorbox-js', 'wpdiscuz-mu-js', 'wpdiscuz-lity-js', 'wpdiscuz-user-content-js', 'wpdiscuz-social-js'])) return 0;
return $ok;
}, 10, 4);
add_filter('hpp_allow_delay_asset', function($ok, $url){
if(strpos($url, 'plugins/wpdiscuz/assets/third-party/wpdccjs/wpdcc.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/third-party/autogrow/jquery.autogrowtextarea.min.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/js/wpdiscuz.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/third-party/colorbox/jquery.colorbox.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/js/wpdiscuz-mu-frontend.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/third-party/lity/lity.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/js/wpdiscuz-user-content.js')!==false) return false;
if(strpos($url, 'plugins/wpdiscuz/assets/js/wpdiscuz-social.js')!==false) return false;
return $ok;
}, 10, 2);
The function "Minify JS from the theme" is disabled but I am getting the same result!
I found the issue that is from Cloudflare APO. Please read the following discussion.
Can you please update the plugin to match the requirement from Cloudflare?

