My-Meta-Box icon indicating copy to clipboard operation
My-Meta-Box copied to clipboard

select2 delay

Open ceroz opened this issue 11 years ago • 0 comments

untitled-2 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:

  1. 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);
  2. Insert _metabox_fields.init(); after jQuery(document).ready(function($) { // 15 line

ceroz avatar Dec 06 '13 08:12 ceroz