Support » Plugin: The SEO Framework » Performance, script application/ld+json right before closing head tag

  • Resolved xarelix

    (@xarelix)


    I am wondering what can be done so that the <script type=”application/ld+json”> sections appear just before the closeing </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 am thinking that maybe its not always an issue, it might only be happening because of the combination of plugins I am using.

    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&gt;

    and maybe the jquery file is only in the location of my page because of the other two plugins I use “Autoptimize” and “Async JavaScript” (by Autoptimize author), I am only using the “Async JavaScript” plugin so that I can load jquery Asynchronously, so maybe that could be done another way?

    Appreciate any thoughts or ideas regarding this, thank you for an excellent tool. I am new to both wordpress and SEO, and so far I really love “The SEO Framework”

    EDIT: I tried disabling “Async JavaScript” but that made no difference, so I am thinking my best bet is to find a way to get “SEO Framework” to insert this before the closing head tag, but im not sure how.

    I can also post this over at “Autoptimize” plugin, because it could be relevant there too/more, I not sure.

    • This topic was modified 1 year, 5 months ago by xarelix. Reason: cleanup
    • This topic was modified 1 year, 5 months ago by xarelix. Reason: more info
    • This topic was modified 1 year, 5 months ago by xarelix.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Performance, script application/ld+json right before closing head tag’ is closed to new replies.