• Resolved newshop

    (@newshop)


    Hello,
    I noticed that when Hummingbird is enabled, there is this line in my source code:
    <link rel='dns-prefetch' href='//fonts.googleapis.com' />
    although I dont use any google fonts and have disabled all hummingbird optimization options (I just use it for performance test). So, I would like to remove this. How can I do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @newshop

    I hope you’re well today!

    Please go to the “Hummingbird -> Advanced Tools -> General” page and scroll it down until the “Prefetch DNS Requests” option. There’s text box in which you can define what should be prefetched. If you want to disable Hummingbird pre-fetching these requests you’d want to remove everything from that option box, leaving only “grayed-out placeholders”.

    Hummingbird will only “pass over” what is already set to be prefetched by WordPress core and/or theme and/or other plugins in such case.

    Kind regards,
    Adam

    Thread Starter newshop

    (@newshop)

    Hi Adam,
    thank you very much for your soon reply. I’ve already checked that box and its empty. Thats why I dont understand why this line of code is added. I disabled all plugins except woocommerce and hummingbird and only disabling hummingbird too removed this line. Any more ideas what to check?

    Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @newshop

    Thanks for response!

    I admit this is a bit strange and quite unexpected. I tried but I can’t replicate this. With Hummingbird enabled but both “prefetch” and “preconnect” options emptied, I’m only having this line

    <link rel='dns-prefetch' href='//s.w.org' />

    but so it is there also with Hummingbird disabled entirely – I’m testing with no other plugins active and default Twenty Twenty-One theme on WordPress 5.8.

    This would be expected. There are two other lines added by default but they are not “prefetch” but “preconnect”. Are you sure it’s “prefetch” in your case and not “preconnect”, like this?:

    <link rel='preconnect' href='https://fonts.gstatic.com' />
    <link rel='preconnect' href='https://fonts.googleapis.com' />

    I just want to make sure, hence the question. Also, is it happening as well if you – in addition to disabling all other plugins – switch theme to Twenty Twenty-One?

    Let me know, please.

    Best regards,
    Adam

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @newshop

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional questions or problems.

    Best Regards
    Patrick Freitas

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

The topic ‘Remove dns-prefetch’ is closed to new replies.