I am using the lazy-load jQuery plugin to delay loading bottom-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. I don't think the lazy-loading plugin manages things that are not images (at least until it looks like this). I may have to do it myself. In this case, how to determine when the area containing the Flash object becomes visible?
Edit: I think I can hack something using the jQuery dimensions plugin and tracking divcontaining the Flash object.
div
Edit2: Okay, I opened up generosity on this. If someone can get to him before I have the opportunity to play with this on the weekend, +250 to you. :)
If the memory serves me correctly, setting this parameter wmodeof the flash object in the DOM to not opaquedo this. There's a bit about the various settings wmode here.
wmode
opaque
hm, , jquery prugin, , , , - , Flash-, onload , onload , -, ( , jquery-plungin , onload ).
onload
EDIT: , onload img- , (?) ( ) - , , ...
, - ---- - , . in-view "" ( / div), , Flash.
, lazyLoad script, , lazyLoad "src", Flash ().
lazyLoad src , "src". , "".
():
/* Save original only if it is not defined in HTML. */ if (undefined == $(self).attr("original")) { $(self).attr("original", $(self).attr("src") || $(self).attr("data") || $(self).find("embed").attr("src") ); }
, , , .
, , . :
So, for lazy loading, I just reused or destroyed functions that determine whether this element is present in the view or not. Connect to the scroll event, and if something should appear, you embed SWF with swfobject. That should do it.
Also look at the lazy source download plugin , it's really not complicated.
Source: https://habr.com/ru/post/1740616/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1740611/rails-how-can-i-combine-multiple-model-attributes-to-create-a-unique-permalink-using-permalinkfu&usg=ALkJrhgU4cg2OiIu90YKfq0ie9iV7k1oKgHow can I put an image in a row using NSString on an iPhone? - iphoneSquare number in NASM assembly without multiplication - assemblyHow to create a runtime protocol in Objective-C? - objective-c$ .each and confusion animations - jqueryMinGW error "undefined reference to 'typeof' '" - cDistributed message distribution - architectureApp Engine - Objectify - saving byte [] - google-app-engineFailed to execute DBD :: SQLite :: st: data mismatch - perlWhat is the most efficient way to solve a system of equations containing a dimam function? - mathAll Articles