Notifications
Clear all

wpDiscuz not compatible with official Google AMP plugin

7 Posts
2 Users
0 Reactions
3,361 Views
(@edward)
Active Member
Joined: 9 years ago
Posts: 16
Topic starter  

Hi!

Dear developers, you have checked the compatibility of the plugin wpDiscuz with the official plugin from Google (AMP Plugin for WordPress)?

https://www.ampproject.org/latest/blog/the-official-amp-plugin-for-wordpress/

My site does not display the AMP-page correctly if the plugin wpDiscuz is active.

Check it please...


   
Quote
(@edward)
Active Member
Joined: 9 years ago
Posts: 16
Topic starter  

In my opinion, the reason is that AMP pages have a limit on the amount of CSS. It should be no more than 50 kilobytes, so my amp-page is loaded incorrectly.

Here's a code snippet of my AMP page:

 3591 B (18%): link#wpdiscuz-font-awesome-css[rel=stylesheet][id=wpdiscuz-font-awesome-css][href= http://handmade39.ru/wp-content/plugins/wpdiscuz/assets/third-party/font-awesome-5.0.6/css/fontawesome-all.min.css?ver=5.3.2 ][type=text/css][media=all]
 16659 B (43%): link#wpdiscuz-frontend-css-css[rel=stylesheet][id=wpdiscuz-frontend-css-css][href= http://handmade39.ru/wp-content/plugins/wpdiscuz/assets/css/wpdiscuz.css?ver=5.3.2 ][type=text/css][media=all]
    46 B (0%): link#wpdiscuz-user-content-css-css[rel=stylesheet][id=wpdiscuz-user-content-css-css][href= http://handmade39.ru/wp-content/plugins/wpdiscuz/assets/css/wpdiscuz-user-content.css?ver=5.3.2 ][type=text/css][media=all]
     0 B: link#wmu-colorbox-css-css[rel=stylesheet][id=wmu-colorbox-css-css][href= http://handmade39.ru/wp-content/plugins/wpdiscuz-media-uploader/assets/third-party/colorbox/colorbox.min.css?ver=5.1.1 ][type=text/css][media=all]
  2555 B (40%): link#wmu-frontend-css-css[rel=stylesheet][id=wmu-frontend-css-css][href= http://handmade39.ru/wp-content/plugins/wpdiscuz-media-uploader/assets/css/wmu-frontend.css?ver=1.3.8 ][type=text/css][media=all]
  2122 B (61%): link#td-theme-amp-css[rel=stylesheet][id=td-theme-amp-css][href= http://handmade39.ru/wp-content/themes/Newspaper/mobile/style-amp.css?ver=9.6.1 ][type=text/css][media=all]

   
ReplyQuote
(@edward)
Active Member
Joined: 9 years ago
Posts: 16
Topic starter  

As an option - solution - maybe programmatically disable the wpDiscuz plugin when loading an AMP-page?

Thank you!


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6191
 

Hi @edward,

In this case, you should use some minify plugin. The list of the plugins here:

https://ru.wordpress.org/plugins/tags/minify/


   
ReplyQuote
(@edward)
Active Member
Joined: 9 years ago
Posts: 16
Topic starter  

Thanks for reply!

I would not like to load the site with another plugin...

But still - thanks for the advice.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6191
 

@edward

We'll add wpDiscuz minify CSS version in next version release. But I don't have any ETA. 


   
ReplyQuote
(@edward)
Active Member
Joined: 9 years ago
Posts: 16
Topic starter  

Оh! Thank you very much. Let's wait!


   
ReplyQuote
Share:
Scroll to top