Replies: 0
I am wondering what can be done so that the <script type=”application/ld+json”> sections appear just before the closing </head> tag.
Otherwise gtmetrix will report
The following inline script blocks were found between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.
I see that following the “application/ld+json”, it loads the jquery file:
<script type=’text/javascript’ async=’async’ src=’https://www.mysite.com/wp-includes/js/jquery/jquery.js’></script>
The plugin that is inserting the “application/ld+json” is “The SEO Framework”, I am not sure if this is best solved by autoptimize or seo framework, or possibly a code snippet that restructures the page, so I have posted in both plugins support sections.
Appreciate any thoughts or ideas regarding this, thank you for an excellent plugin. I have tried them all, and “Autoptimize” coupled with “Redis Object Cache” gave the absolute best performance, I absolutely love how “Autoptimize” reduces the number of requests by combining files! Thank you so much!
EDIT: forgot to mention I searched through all 110 pages for the keyword json, there were only two posts vaguely related:
https://wordpress.org/support/topic/typeapplicationldjson-expluded/
https://wordpress.org/support/topic/json-ld-error/
The first link suggests that I should just ignore the error on gtmetrix I think, but just want to make sure there is not a simple fix.
-
This topic was modified 1 hour, 26 minutes ago by xarelix.
-
This topic was modified 1 hour, 22 minutes ago by xarelix.