modxcms/revolution — pull request #11605 by exside (2014-06-30 10:04:37+00:00)
Title: Enhancement: Prevent flash of unstyled TV form fields on resource panel load

This would resolve https://github.com/modxcms/revolution/issues/4763

When the resource edit screen is loaded, there is a short flash of the the unstyled TV form fields like that
![modx unstyledtvs old](https://cloud.githubusercontent.com/assets/445501/3428197/8ffedbe0-003d-11e4-8b17-e6776153051d.gif)

with these small changes, that flash is prevented. I replaced bodyStyle: 'display: none;' with style: 'visibility: visible;' and set the #modx-resource-tvs-div to 'visibility: hidden' initially in the css, I'm not entirely sure what the bodyStyle: 'display: none;' is supposed to do, it doesn't have an effect when I remove it...can also add it back when it has a purpose =)...

with the changes it load like this:
![modx unstyledtvs new](https://cloud.githubusercontent.com/assets/445501/3428223/e367d1c4-003d-11e4-8338-fed2789db93a.gif)