+ // Send the document's height again after the featured image has been loaded.
+ if ( featured_image ) {
+ featured_image.addEventListener( 'load', function() {
+ sendEmbedMessage( 'height', Math.ceil( document.body.getBoundingClientRect().height ) );
+ } );
+ }
+