Delayed lazy loading of YouTube video content and SEO effect

My site uses a large number of plugins / active content from YouTube, Facebook and SoundCloud videos. The effect of these adds a fair amount to the page load time.

I have developed a code that populates a DIV with an inline Iframe after the page has loaded using the Jquery.ready () event. It's not clever, but it significantly improves page load times:

<script type="text/javascript">

$(document).ready(function() { 
    $("#video").html("<iframe width='350' height='230' src='http://www.youtube.com/embed/myid?wmode=transparent' frameborder='0'></iframe> ");
});

</script> 

      

From an SEO standpoint, Google loves video content as long as it relates to the content of the page. My code uses Javascript to load the video after the page has loaded. I know Googlebot uses Javascript, but is this method safe and will it affect my SEO?

+3


source to share


1 answer


In general, Google will not index material provided by JS. The code for your video is fine as it helps to reduce the page load time.



You can try including video-related content in the #video element. This will help provide some SEO context around your video and will help anyone who doesn't have JS enabled.

+1


source







All Articles