I'm using the 'MetaBox Conditional Logic' plugin, as well as the 'Meta Box 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.
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.
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.
Thanks 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!
Hi, 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?
Awesome! For sure, here you go https://ghostbin.com/paste/hqkt5
Let me know if you need anything else. Thanks again,
I'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.
That works so much faster! Thanks so much
Hi, 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.
New version is available and I think you already tried it 🙂 Let me know if you find any bug.
Ah, I wasn't sure if there was another other unreleased version 😀