• Resolved xarelix

    (@xarelix)


    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://ww.wp.xz.cn/support/topic/typeapplicationldjson-expluded/
    https://ww.wp.xz.cn/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 7 years, 7 months ago by xarelix.
    • This topic was modified 7 years, 7 months ago by xarelix.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    there is no simple fix and this indeed is a false positive on GTMetrix part; <script type=”application/ld+json”> is not executed by the browser but is read by search engines and as such it just can’t block parallel downloading 🙂

    hope this clarifies,
    frank

    Thread Starter xarelix

    (@xarelix)

    Awesome! Thanks for confirming that Frank 🙂

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome xarelix, feel free to leave a review of the plugin and support here! 🙂

    Thread Starter xarelix

    (@xarelix)

    I am doing just that right now Frank! Thanks again!

    I noticed the picture of the windsurfer on the plugin page! That is AWESOME! I grew up in Florida and we did a lot of Windsurfing, was a total blast!

    EDIT: I used the contact link on the GTMetrix site to bring this their attention.

    • This reply was modified 7 years, 7 months ago by xarelix. Reason: more info
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Performance, script application/ld+json before closing head? or jquery sooner?’ is closed to new replies.