Manual optimization of header

  1. virgodesign

    I think that could be very useful the ability of optimize the header section:

    Disable and/or enable manually:

    Generator tag
    next/prev tags
    css and javascript tags
    feed tags
    trackback and xmlrpc tag
    And also the ability to move in the footer js and css rel tags.

    In general it would be a feature that give the ability to edit and optimize, if needed, the header section. This will give more performance and fast loading for mobile devices, and a better optimization of the website from an SEO point of view.

    Hope could be useful, thanks.

    Posted: 6 years ago #
  2. you can easily remove the header tags in your functions.php

    remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
    remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
    remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
    remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
    remove_action( 'wp_head', 'index_rel_link' ); // index link
    remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
    remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // start link
    remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Display relational links for the posts adjacent to the current post.
    remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version
    Posted: 6 years ago #
  3. Keral Patel


    I think the top priority should be generator tag. Why can't we encrypt it and use the inbuild hash salt to decode it if it is needed for internal purposes. Displaying the generator is an invitation to hackers.

    On other hand I would also agree that wordpress developers have done a great job of addressing the issues till the day.

    Posted: 5 years ago #

RSS feed for this topic


You must log in to post.

  • Rating

    2 Votes
  • Status

    This is theme territory