// jQuery(window).load(function(){
//   setTimeout(function(){
//     let documentHeight = document.documentElement.scrollHeight;
//     console.log('current height');
//     console.log(documentHeight);
//     window.parent.postMessage(
//       { documentHeight },
//       '*'
//     );
//   },1000);
   
//       });
      const observer = new MutationObserver(() => {
        const height = document.body.scrollHeight;
        window.parent.postMessage({ type: 'resizeIframe', height }, '*');
      });
      
      observer.observe(document.body, {
        attributes: true,
        childList: true,
        subtree: true
      });