||View All MessagesBack to WebFX|
"I also remember some other people posted this "bug" in the webboard in the past."|
It is a known bug and the best way around it is to use cssText instead of cssFile.
I don't think you need a loop in there. You need to do a DOM call that forces a reflow. Accessing/setting scroll* usually is enough. Could you try to remove the loops and just call document.body.scrollHeight before accesing the document.body.firstChild.offset*?