When using any of the metabox plugins that make use of javascript for the styling in some way, there is always a flash of unstyled content on initial loading of the post edit screens in the backend.
If I use conditional logic to hide a field unless a condition is met, then when the post edit screen is first loaded, all fields are visible for about 25 to 50ms before the MB scripts load and apply the classes that are used for hiding the fields.
It is the same for all of the Select2 fields. Initially the normal Select field displays, and only after the MB scripts finish loading do the styles kick in.
This is extremely unprofessional looking. It looks as if the problem is because the WP styles are loading first, followed by the MB scripts, so we get this FOUC.
How can I fix this?
thanks
Guy