• Resolved paulalexandru

    (@paulalexandru)


    So I performed some tests on http://ready.mobi/ and I get 2 errors regarding the a type=application/ld+json code which is placed in the header.

    1. JavaScript includes should always be included at the end of the document to avoid blocking the page loading
    2. Inline JavaScript code should not be used, instead JavaScript should be collected into a single minified include file

    The code looks like this:

    <script type=”application/ld+json”>{“@context”:”http:\/\/schema.org” … </script>

    I saw in your readme.txt that you said:
    Improvement: hard-exclude all linked-data json objects (script type=application/ld+json)

    But why?

    https://ww.wp.xz.cn/plugins/autoptimize/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frank Goossens

    (@futtta)

    because applicatoin/ld+json is not javascript; those blocks contain structured content for search-engines to harvest and need to be found asap. it is an error on mobi.ready’s part to consider this as render-blocking javascript, because … well, it just isn’t 🙂

    frank

    Thread Starter paulalexandru

    (@paulalexandru)

    Thank you for you message and let me show my respect for you because you did such a great plugin. Keep it up ! Cheers

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

The topic ‘type=application/ld json expluded’ is closed to new replies.