November 17, 2018 at 10:58 am #10949
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 youNovember 17, 2018 at 12:06 pm #10952
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 🙂November 17, 2018 at 1:29 pm #10953This reply has been marked as private.November 17, 2018 at 1:38 pm #10954
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 youNovember 17, 2018 at 2:02 pm #10957
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.November 17, 2018 at 2:11 pm #10958
Thank you very much Andrew,
will wait for further information from youNovember 18, 2018 at 1:22 pm #10967
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.comto 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.November 19, 2018 at 3:35 am #10969
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 youNovember 19, 2018 at 6:49 pm #10973
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.
You must be logged in to reply to this topic.