cooking, programming and everyday life xrado

Thursday, August 14, 2008

firefox & opera and blinking web pages with embeded flash

I don't know if this only happens in FF3 and Opera 9.5 or even in earlier versions, but when you are clicking on web site with embedded flash the whole site blinks, like it is redrawn again. If i describe you in a slow motion, it first shows the white background and then the page. For instance, open youtube and try clicking on videos thumbnails on a side. Do you see the blinking? This must be some kind of browser or maybe even flash bug, because IE and Safari are rendering pages just fine. Its also interesting that this only happens on windows, meanwhile same browser in linux rendering just fine. Tested with firefox 3.0.1 and opera 9.5 and flash player 9.0 r124.
I solved this problem with a little workaround. I made a javascript function which puts the whole <object>...<embed>...</embed></object> into one string variable. Then I put this string to website (into some div for example) on window event 'load'. I've tried also on 'domready', but page still blinks. After window event 'load' everything seems to be OK.

COMMENTS ARE DISABLED