- This topic has 9 replies, 2 voices, and was last updated 6 years ago by Andrew Misplon.
- AuthorPosts
- November 17, 2018 at 10:58 am #10949
Custom CustomerParticipantHi
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
November 17, 2018 at 12:06 pm #10952
Andrew MisplonKeymasterHi
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 #10953
Custom CustomerParticipantThis reply has been marked as private.November 17, 2018 at 1:38 pm #10954
Andrew MisplonKeymasterThanks. Please, check the Enqueue JavaScript setting here: https://purothemes.com/documentation/ultra-theme/customizer/theme-settings/footer/. Make sure it’s not enabled.
November 17, 2018 at 1:45 pm #10956
Custom CustomerParticipantOkay. 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
November 17, 2018 at 2:02 pm #10957
Andrew MisplonKeymasterThe 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
Custom CustomerParticipantThank you very much Andrew,
will wait for further information from youNovember 18, 2018 at 1:22 pm #10967
Andrew MisplonKeymasterHi, 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 changehttps://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.
November 19, 2018 at 3:35 am #10969
Custom CustomerParticipantHi 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
November 19, 2018 at 6:49 pm #10973
Andrew MisplonKeymasterYou 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.
- AuthorPosts
You must be logged in to reply to this topic.