Search code examples
cssamp-html

How to handle "the author stylesheet specified in tag 'style amp-custom' is too long" in AMP?


My css on AMPed page exceeds 50,000 bytes. When I was looking for solution of this problem, I found this page cssminifier.com but the result doesn't satisfy me (the CSS is admittedly smaller than earlier and website works properly but it's still far from permitted size).

Anyone knows any other workaround for this?


Solution

  • There is no work around. By design your CSS has to be small on AMP pages. You will need to remove some rules to get it down to 50KB.

    We automate this using the critical node module.