There may be different ways, 1 possible:
store the src
in another attribute of the iframe
(e.g. data-src
) and assign the src
when the lightbox opens:
$(".selector").fancybox({
afterLoad:function(){
this.content.find('iframe')
.each(function(i,f){
f=$(f);
if(!f.attr('src')) {
f.attr('src',f.data('src'));
}
});
}
});