tags:

views:

39

answers:

1

Hi,

I've noticed something weird at IE. When i have a flash object (.swf) inside a page, then any action/function inside $(document).ready starts after the swf object has been fully loaded. (While in firefox, it doesn't need the swf to be fully loaded)

Why is this happening, and how can i prevent it?

+3  A: 

A simple hack solution is to not embed the swf until the page is loaded. Leave a blank div with a given id, and use swfobject to embed the swf in the div on document ready.

Stefan Kendall
Using swfobject will also guard you against future embedding incompatibility between different browsers, as the object/embed voodoo is enclosed in the library.
Stefan Kendall