• Resolved Markus K?mmerer

    (@happyarts)


    Hi,

    the function “Cleanup Header” does exactly, what it says. But I think, this is to agressive. I’m using https://wpschema.com Schema Pro Plugin to add schema.org information and https://theseoframework.com/ The SEO Framework Plugin. Everything from this both plugins is stripped from the html output.
    Maybe in future versions only unneccessary information should be striped? Otherwise this option is really a SEO killer.

    Markus

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Raul P.

    (@alignak)

    Schema is definitely not removed intentionally, unless it’s malformed (no json+ld attribute) or by some other accident.

    The header cleaning, only removes certain link or meta tags.
    It does not touch script tags, like schema or any other.

    If your schema is not properly declared as json+ld, it may be getting minified perhaps, and becoming invalid.

    What is your site url?

    Thread Starter Markus K?mmerer

    (@happyarts)

    Hi Paul,
    the site url is https://markus-kaemmerer.de

    Here are examples of removed lines. The schema.org infos are encodeed as “script” -maybe there are merged in another file? But there are more information stripped.

    You can download the html file of the main site with “Cleanup Header” switched on and off here: https://www.dropbox.com/s/who93xe4a9dc7y8/Cleanup-Header.zip?dl=0

    <link rel='dns-prefetch' href='//use.typekit.net' />
    <link rel='dns-prefetch' href='//s.w.org' />
    <link rel="alternate" type="application/rss+xml" title="Business Mentor Markus K?mmerer &raquo; Feed" href="https://markus-kaemmerer.de/feed/" />
    <link rel="alternate" type="application/rss+xml" title="Business Mentor Markus K?mmerer &raquo; Kommentar-Feed" href="https://markus-kaemmerer.de/comments/feed/" />
    <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"organization","name":"storEmotion - Mentor f\u00fcr Unternehmerinnen","url":"https:\/\/markus-kaemmerer.de","ContactPoint":{"@type":"ContactPoint","contactType":"customer support","telephone":"+491775990932","url":"","email":"[email protected]","contactOption":["",""],"areaServed":["GER"],"availableLanguage":["German"]},"logo":{"@type":"ImageObject","url":"https:\/\/markus-kaemmerer.de\/wp-content\/uploads\/sites\/3\/2013\/07\/storEmotion-Logo-500x102.png","width":500,"height":102},"sameAs":["https:\/\/www.facebook.com\/pg\/storemotion1","https:\/\/www.instagram.com\/happyarts\/","https:\/\/twitter.com\/happyarts","https:\/\/www.linkedin.com\/in\/storemotion\/"]}</script>
    <link rel="apple-touch-icon" href="https://markus-kaemmerer.de/wp-content/uploads/sites/3/2013/07/cropped-storEmotion-Logo-250x51-1-180x180.png" />
    <meta name="msapplication-TileImage" content="https://markus-kaemmerer.de/wp-content/uploads/sites/3/2013/07/cropped-storEmotion-Logo-250x51-1-270x270.png" />
    Plugin Author Raul P.

    (@alignak)

    Comparing the file with a diff, the schema is there on both html pages.
    The stuff removed is:

    <link rel='dns-prefetch' href='//use.typekit.net' />
    <link rel='dns-prefetch' href='//s.w.org' />
    <link rel="alternate" type="application/rss+xml" title="Business Mentor Markus K?mmerer &raquo; Feed" href="https://markus-kaemmerer.de/feed/" />
    <link rel="alternate" type="application/rss+xml" title="Business Mentor Markus K?mmerer &raquo; Kommentar-Feed" href="https://markus-kaemmerer.de/comments/feed/" />

    and

    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://markus-kaemmerer.de/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://markus-kaemmerer.de/wp-includes/wlwmanifest.xml" />

    and

    <link rel="apple-touch-icon" href="https://markus-kaemmerer.de/wp-content/uploads/sites/3/2013/07/cropped-storEmotion-Logo-250x51-1-180x180.png" />
    <meta name="msapplication-TileImage" content="https://markus-kaemmerer.de/wp-content/uploads/sites/3/2013/07/cropped-storEmotion-Logo-250x51-1-270x270.png" />

    There are no <script type="application/ld+json"> sections being removed.
    There are 5 in each page: https://i.imgur.com/F1X54oo.png

    Thread Starter Markus K?mmerer

    (@happyarts)

    Hi Paul,
    your’re right. The schema-entrys are in both files. They are newly sorted, so i did not see these entries.

    I’m not shure if it is good to remove the stuff, you listened. The touch icon is important and the RSS feed links are to. And whats wrong about the prefetch of the typekit files? I don’t see the reason for removing this. But i’m not an expert,

    Markus

    Plugin Author Raul P.

    (@alignak)

    For performance reasons, you need the head section to be as short as possible. The more stuff you put there, the slower it gets to reach the body content. Also, when it’s too long, it affect the time to first byte.

    The dns prefetch doesn’t matter and we want to reduce the network activity by removing it. It’s not prefetching anything… it’s only forcing your browser to connect to that domain earlier than needed. However, we need to remove it to optimize the network for what actually matters, which is your css and js files.

    The RSS feeds are not removed, only the references to it are.
    RSS feeds work exactly the same way… this is a line to advertise them on your code basically.

    The manifest and stuff is outdated, unless you still use windows live writer to publish posts.

    And the specific touch icons are removed, but the icon references are still there and can be reused for both. You don’t need yet another icon specifically for apple, as apple will work with the common icons as well.

    What is removed is what can be removed for 99% of cases.

    Thread Starter Markus K?mmerer

    (@happyarts)

    Thank you for the explanation. I can follow, but with the apple icon: you can specify here another, bigger icon file which is used by apple. In my case i did not upload a specific file, but it is possible and makes sense.
    And is the RSS feed reader able to finde the rss file without the reference? I’m not shure about.
    Markus

    Plugin Author Raul P.

    (@alignak)

    Well, if you are not sure and the rss discovery is very important to you, you can always disable that feature.

    Thread Starter Markus K?mmerer

    (@happyarts)

    At the moment i think it is too risky to enable this feature. Other things are much more important for the performance.
    Thx for the support.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cleanup Header – to agressive?’ is closed to new replies.