[Resolved] Dropdown menu speed

  • Author
    Posts
  • #10949

    Custom Customer
    Participant

    Hi

    Is there a way to improve dropdown menu performances?

    It usually takes the time to wait until page get loaded completely, then dropdown menu starts to work. Is become a big problem for me, because I got visitors from some regions with very slow-internet connection. So the menu in most cases just doesn’t work for them.

    Maybe somehow possible to load scripts responsible for the menu first?

    Thank you

    #10952

    Andrew Misplon
    Keymaster

    Hi

    Indeed, a CSS only solution would be better for slow connections. Unfortunately, Ultra uses JS for the drop-downs, as you’ve realised. Could you perhaps send a link so I can see where the theme JS file is loading? Thanks 🙂

    #10953

    Custom Customer
    Participant
    This reply has been marked as private.
    #10954

    Andrew Misplon
    Keymaster

    Thanks. Please, check the Enqueue JavaScript setting here: https://purothemes.com/documentation/ultra-theme/customizer/theme-settings/footer/. Make sure it’s not enabled.

    #10956

    Custom Customer
    Participant

    Okay. It was enabled actually. So I currently disabled it, and also deactivated my cache plugin.

    However I don’t see any changes, it still works in the same way – can open dropdown after page loaded completely.

    Thank you

    #10957

    Andrew Misplon
    Keymaster

    The main theme JS file is now loading in the head so it’s loading sooner than it would have been in the footer. The file has to load before the drop-down menu will function. I’ll try to investigate preloading for you on Monday but within the current theme construction, this is the best that can be done.

    #10958

    Custom Customer
    Participant

    Thank you very much Andrew,
    will wait for further information from you

    #10967

    Andrew Misplon
    Keymaster

    Hi, you can try the following:

    1. Go to Plugins, search for and install Code Snippets.
    2. Download the following JSON file, right click save as: https://purothemes.com/wp-content/uploads/2018/11/preload.code-snippets.json
    3. Go to Snippets > Import in WordPress. Import and save, make sure the snippet is activated and that it’s set to Only run on site front-end.
    4. Edit the snippet and change https://demo.purothemes.com to match your URL. Only that part must change.

    I can’t see much of a difference on my side but perhaps you will. This will help the JS file by loading it in the background as soon as possible. Short of re-writing the way the menu works, this is the best I can do.

    #10969

    Custom Customer
    Participant

    Hi Andrew

    Unfortunately, it doesn’t affect over menu loading priority. Dropdown still works only on complete page load.

    Very sad that there is no solution

    Thank you

    #10973

    Andrew Misplon
    Keymaster

    You could try using W3 Total Cache plugin if you aren’t already. It should make a difference for any page loads after the initial page is viewed.

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

You must be logged in to reply to this topic.

Scroll to top