'style amp-custom' is too long

Posted in: Newspaper
Post count: 37

Hi there,

I am having so many errors on search console for my AMP pages. It shows: The author stylesheet specified in tag ‘style amp-custom’ is too long – the limit is 50000 bytes.
My website: https://muscleandfitness.com.tr/
For example these pages having errors;
https://muscleandfitness.com.tr/spora-yeni-baslayanlarin-merak-ettikleri-5-temel-soru/amp/
https://muscleandfitness.com.tr/seker-alimini-azaltmak/amp/
https://muscleandfitness.com.tr/kas-kutlesi-arttirma-ve-super-guclenme-icin-25-taktik/amp/

I will be happy if you help about it.

Post count: 20688

Hi,

I would suggest as a first step to deactivate all plugins if possible, leave only theme plugins active. Then test the same posts with the AMP validator
https://validator.ampproject.org/
Start with this one for example – https://www.screencast.com/t/anC8fPVMTJq That one loads quite some CSS.

The stylesheet of our AMP plugin is not larger than the limit, but some plugins may trigger this error ( I’ve seen similar cases before).

Thanks

Post count: 37

Hi,

As you have said, I considered that plugin and I deactivated this “easy social share plugin” and the AMP limit was normal. That is why I wrote to Easy Social Share plugin support. But They also have concern about the theme which is Newspaper. What is the solution , what do I need to do? Here is my question and their answer on plugin support;
easy social share support

Help me please.

Thanks…

  • This reply was modified 7 years by burakk.
Post count: 20688

Hi,

It’s not really a problem if there is no issue by default. The CSS from the AMP plugin is about 36KB so it’s well below the 50KB limit set by AMP.
There would be nothing to do about it, we can’t remove CSS from the AMP plugin to create more room for CSS loaded by plugins. If Google created this rule it has to be respected in order to have valid AMP.

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.