Home Forums WoodMart support forum Dropdowns actions – where are they ?

Dropdowns actions – where are they ?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #344850

    Woolsome
    Participant

    Hi

    In my webshop : https://www.woolsome.shop I am struggling with its slower performance.
    And I realized that on Load .. admin-ajax.php is asking woodmart_load_html_dropdowns
    TWICE .. and twice receiving “Can’t load HTML blocks with AJAX” .

    And it takes significant time.
    I switched it off in child functions.php this way :

    remove_action( ‘wp_ajax_woodmart_load_html_dropdowns’, ‘woodmart_load_html_dropdowns_action’, 99999 );
    remove_action( ‘wp_ajax_nopriv_woodmart_load_html_dropdowns’, ‘woodmart_load_html_dropdowns_action’, 99999 );

    And I do not see that my shop would be broken because of my change.

    Can you explain where eventually I would need to have this request for woodmart_load_html_dropdowns available for my shop ?

    #344894

    Artem Temos
    Keymaster

    Hello,

    Try to walk through all your menu items via Appearance -> Menus and make sure that AJAX dropdowns are disabled for all of them.

    Kind Regards

    #344918

    Woolsome
    Participant

    I made a reasearch about it and I am confused.

    In this article https://space.xtemos.com/wordpress-performance-optimization-the-ultimate-guide-in-2021 you are actually recommending to setup this (Load HTML dropdown with AJAX) to YES. So it can speed up a site.

    But in fact it is slowing it down as I assume, by sending not necessery requests.

    What is your opinion about it ?

    #344919

    Artem Temos
    Keymaster

    Yes, but it is for HTML block dropdowns only. We don’t see any dropdowns with HTML Blocks in your header. That is why it would be better to disable them for standard dropdowns.

    #344922

    Woolsome
    Participant

    Excellent. Thank you for your help

    #345033

    Artem Temos
    Keymaster

    You are welcome! Feel free to contact us if you have any further questions.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Dropdowns actions – where are they ?’ is closed to new replies.