We are working on WordPress Theme, Which is multipurpose and have lots of elements and functionalities.
I need suggestion on coding structure of dynamic CSS :
Option 1 : We have setup attributes of Visual composer elements options and put them in to the JS and when pages load on front end, JS will provide all styling/css as per attributes, In that case our loading is a bit glitchy because some content comes up with default css and then JS provide all styling, It’s micro second glitches but glitches are there.
We are doing this because Envato doesn’t allow dynamic styles/css to be directly in php file inline.
Options 2 : Some Themes like native, add code (in tag) in PHP file and include all php files of elements in plugin. So, Envato doesn’t soft reject based on that error. And this way frontend looks perfect from the beginning.
What is the real scenario and Should I go with Option 2 or ThemeForest Reviewer rejects that?
Thanks in advance for reply. Need help on this urgently.