• Resolved bookfinder

    (@bookfinder)


    Hi,

    when trying to check with the Google Structured Data Testing Tool i get the following error message.

    “The document cannot be validated because it is larger than 2.5 MB.”

    I have not been able to find anything about it in google.

    Would you please be able to help with this?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support amboutwe

    (@amboutwe)

    Google’s structured data testing tool has a max HTML file size of 2.5 MB. Downloading your homepage, the HTML file is over 3.1 MB. In the HTML file, we see quite a bit of style code written into the header; it’s pretty much the entire file as without the style’s the file is less than 1 MB. This is a feature typically offered by cache plugins. Please contact the author of the cache plugin you use and ask them how to turn off the feature that add all the CSS styles to the header of your site.

    Thread Starter bookfinder

    (@bookfinder)

    Hi,

    this has enabled me to pinpoint the issue as being caused by inlining all CSS within the autoptimize plugin. After turning this option off i can confirm that the structured data can now be read by google.

    thank you very much for your quick and accurate help, i hope that if someone else comes across this issue this will help them as well.

    Much appreciated.

    Have a great day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The document cannot be validated because it is larger than 2.5 MB.’ is closed to new replies.