Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lazy-loading flash objects

I'm using the jQuery lazy-loading plugin to defer loading of below-the-fold images on a large web page. This works great. Now, I would like to apply the same technique to a large Flash object which is also below-the-fold. I don't think the lazy-load plugin handles things that aren't images (at least it doesn't look that way so far.) I may have to do it myself. In that case, how do I detect when the area containing the Flash object becomes visible?

Edit: I think I may be able to hack something up using the jQuery dimensions plugin and keeping track of the div containing the Flash object.

Edit2: OK, I've opened a bounty on this question. If anyone can get to it before I have a chance to play around with this over the weekend, +250 to you. :)

like image 253
friedo Avatar asked Sep 13 '26 15:09

friedo


1 Answers

If memory serves me correctly, setting the wmode parameter of the flash object in the DOM to opaque will do this. There's a bit of dicussion about the various wmode settings here

like image 93
spender Avatar answered Sep 16 '26 08:09

spender



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!