Replies: 7
I’m running W3 Total cache alongside a couple of other plugins, one of which is yoast.
Yoast outputs the following:
<script type=”application/ld+json” class=”yoast-schema-graph yoast-schema-graph–main”>……
This contains a ‘CDATA’ element to associate our sites with our social accounts etc etc.
Now with ‘Minify HTML – inline CSS & inline JS’ switched OFF – this works fine, however once I switch ON ‘Minify HTML – inline CSS & inline JS’ i’m receiving the following error in my Console.
[Facebook Pixel] – Unable to parse JSON-LD tag. Malformed JSON found: ‘/*<![CDATA[*/{“@context”:”https://schema.org”,”@graph”:[{“@type”:”Organization”,”@id”:”……
It seems Minify is block commenting out the CDATA and causing the error.
Any ideas?
Jay