My-Meta-Box
My-Meta-Box copied to clipboard
select2 delay
After I refresh/load the page I can see a 3 sec delay untill the select object will be styled properly. Image describes what i mean.
Why did you close ? This is your plugin issue because if i type - alert("sss") in the first line of select2.js it will show alert immediately without any delay. So don't say it's happening because of my files.
Maybe someone had similar problem, leave it for now please.
I'll give more details soon
Fixed: meta-box.js
There is no call for _metabox_fields.init(); before - window.setTimeout('_metabox_fields.init();',2000); // 170 line
Solution:
- Delete 169 and 170 line - lack of this step will result in another issue for repeater block (toggle)
//call object init in delay
window.setTimeout('_metabox_fields.init();',2000); - Insert _metabox_fields.init(); after jQuery(document).ready(function($) { // 15 line