I'm creating an editor by doing a replace() on an element. In the config object, I set the path for a css file. When the editor replaces the content in the div, there is a split second delay before the CSS in the specified path is applied which creates this ugly transition between the two. Any suggestions for improving this if possible?
Wed, 04/20/2011 - 06:52
#1

Re: Slight delay before CSS is applied
Does anyone know why the css isn't applied when the text first loads? I at least need to find a way to detect when the editor is completely loaded meaning the loaded and css applied so I can hide it until it's complete.
Re: Slight delay before CSS is applied
Re: Slight delay before CSS is applied
This shows that the CSS isn't fully applied before the events get triggered to say the editor is ready. I'm just trying to track down if there is a way to fire an event after the css is applied. Otherwise I might just have to put a timed delay on it which is sort of lame.
Re: Slight delay before CSS is applied
So generally everything is up to the browser...
You mentioned hiding editor until the CSS is loaded. Maybe simply unhide it in your CSS file?