Title: Autoptimize and JSON-LD Syntax Error
Last modified: May 8, 2019

---

# Autoptimize and JSON-LD Syntax Error

 *  Resolved [alifeadjacent](https://wordpress.org/support/users/alifeadjacent/)
 * (@alifeadjacent)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/autoptimize-and-json-ld-syntax-error/)
 * Hi there,
 * I’ve been using Autoptimize for a long time and it’s been nothing but helpful.
   This is the first time I’ve had to ask for help.
 * This morning I received a Google notification that one of my blog posts had unparsable
   structured data. I still have very limited knowledge about these things, so I
   apologize in advance if this is not accurate – but, it appears that something
   from Autoptimize is possibly conflicting with my JSON-LD output.
 * When I test my structured data in Google’s testing tool, I receive this error:
   Syntax error: value, object or array expected. And when I click on this error,
   it jumps to this part of my markup:
 * <script type=’application/ld+json’ class=’yoast-schema-graph yoast-schema-graph–
   main’>**var aoDeferInlineJQuery=function()**
 * I’m not sure if this is supposed to be there or not, but something about it is
   causing issues.
 * When I tested the same blog post in Yandex’s structured data tool, it gave me
   the same error and referred to the same part of my markup.
 * I should also note that I have Autoptimize set to exclude jQuery.
 * The link to the affected page is attached. Your help is very much appreciated,
   and thanks for a great plugin.
 * Thank you,
    Kyla
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautoptimize-and-json-ld-syntax-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/autoptimize-and-json-ld-syntax-error/#post-11510457)
 * Evening Kyla;
    That’s a bug in the critical CSS power-up, I’ll fix it there tomorrow/
   Friday. as a workaround you can disable the “Defer jQuery and other non-aggregated
   JS-files? “-option.
 * frank
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/autoptimize-and-json-ld-syntax-error/#post-11511847)
 * OK, should be fixed with [this commit on GitHub](https://github.com/futtta/ao_critcss_aas/commit/7a8338fc2a0cdc0feb93cfa9ce8500ac32f513a2),
   would be great if you could [download the AO CCSS zip from Github](https://github.com/futtta/ao_critcss_aas/archive/master.zip)
   and test it [@alifeadjacent](https://wordpress.org/support/users/alifeadjacent/)?
 *  Thread Starter [alifeadjacent](https://wordpress.org/support/users/alifeadjacent/)
 * (@alifeadjacent)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/autoptimize-and-json-ld-syntax-error/#post-11514088)
 * Hi Frank, thank you very much – that version of the plugin fixed the issue. 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/autoptimize-and-json-ld-syntax-error/#post-11514204)
 * thanks for the confirmation Kyla, the fix will be in the next AO CCSS version(
   probably in a couple of weeks time or so).
 * feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 * have a nice day!
    frank
 *  Thread Starter [alifeadjacent](https://wordpress.org/support/users/alifeadjacent/)
 * (@alifeadjacent)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/autoptimize-and-json-ld-syntax-error/#post-11515808)
 * Will do, thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Autoptimize and JSON-LD Syntax Error’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [json-ld](https://wordpress.org/support/topic-tag/json-ld/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 5 replies
 * 2 participants
 * Last reply from: [alifeadjacent](https://wordpress.org/support/users/alifeadjacent/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/autoptimize-and-json-ld-syntax-error/#post-11515808)
 * Status: resolved