Loading content throuh Ajax, effect slideDown buggy
i'm trying to load a youtube video through an ajax call into the page.
loading the youtube video is working fine, but the slideDown effect is verry crap (shaky) for youtube video's. When i load just text or images or a google maps it's working perfectly smooth.
is there a solution for this?
my code:
- jQuery('#yt0').live('click',function(){
- jQuery.ajax({'complete':function(){
- $("#test").slideToggle(2500);
- },
- 'url':'video.html',
- 'cache':false,
- 'success':function(html){
- jQuery("#test").html(html)
- }
- });
- return false;
- });