Slow loading and response time of 'editor screen'
Support › MB Conditional Logic › Slow loading and response time of 'editor screen'Resolved
- This topic has 10 replies, 4 voices, and was last updated 6 years, 6 months ago by
FED.
-
AuthorPosts
-
October 24, 2018 at 5:10 AM #11733
ambrdigital
ParticipantHello!
I'm using the 'MetaBox Conditional Logic' plugin, as well as the 'MB Group' plugin to create an editor that allows the user to pick certain layouts.
There are 8 layouts, and each has around 3-10 fields conditional to each layout, so maybe around 60-80 fields total.
There is a very slow load time (up to 10 - 15 seconds), this is only really noticeable once I put a decent amount of content in. The load time disappears when 'MetaBox Conditional Logic' plugin is turned off.
Also there is a very slow response time based of my interactions, such as selecting a field or clicking a radio button, takes from 5-15 seconds to select. This also disappears when the plugin is turned off.
Do you have any advice or workarounds for this kind of problem? I cannot show it to the client until this is resolved. Please let me know. Thank you so much.
October 25, 2018 at 4:49 PM #11753Anh Tran
KeymasterHello,
I answered you on Github. I'm posting here in case anyone needed:
The fix in this issue was applied in the Conditional Logic extension.
However, as the extension heavily uses DOM elements to perform the check, it's still slow. I'd suggest to reduce the number of fields (by organizing them better) and/or the number of conditions.I'll keep improving the JS part, but probably not much at the moment.
November 5, 2018 at 5:36 PM #11834Anh Tran
KeymasterHi again,
I've made a significant improvement on checking the conditions, which (in my tests) increase the speed up to 4 times. Please update to version 1.6.0 and let me know how it works for you.
November 6, 2018 at 12:01 AM #11838ambr-digital
ParticipantThanks so much. I noticed it's a bit faster on making selections ie. dropdown or radio. That's awesome!
However I did notice on pages with lots of content, that there is still a really slow load (typically around 8-12 seconds). And they still take pretty long to make radio button selections or similar actions.
As mentioned I've narrowed it down to the conditional logic plugin, and specifically with its interaction with the groups plugin. What I've created is a repeatable group that has 8 radio options, and then there are 8 non-repeatable groups inside with corresponding conditional logic to those 8 radio options.
On pages with 2-3 cloned groups it's tolerable, but then once past that it gets really slow. Please let me know if I can be more descriptive or send over an example. Cheers!
November 6, 2018 at 8:55 AM #11841Anh Tran
KeymasterHi, I'm improving the Conditional Logic and I've just found some parts I can optimize more. I'll release it in a few days. Would you mind giving me your setup (code to register meta box) to test before releasing?
November 6, 2018 at 1:10 PM #11845ambr-digital
ParticipantAwesome! For sure, here you go https://ghostbin.com/paste/hqkt5
Let me know if you need anything else. Thanks again,
November 6, 2018 at 3:33 PM #11847Anh Tran
KeymasterI've just sent you beta versions of Conditional Logic and Group. Please take a look and let me know how they work for you. In my test, the speed is quite good.
November 7, 2018 at 1:25 AM #11867ambr-digital
ParticipantHi Anh,
That works so much faster! Thanks so much
November 7, 2018 at 9:32 PM #11878FED
ParticipantHi, I'd love to get in on this as beta version as well. I'm experiencing a very similar issues, as I also have a ton of grouped and conditional metaboxes.
Thanks!
November 8, 2018 at 10:50 AM #11888Anh Tran
KeymasterNew version is available and I think you already tried it 🙂 Let me know if you find any bug.
Thanks.
November 9, 2018 at 3:56 AM #11898FED
ParticipantAh, I wasn't sure if there was another other unreleased version 😀
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.