code: function sendReadyMessage() {
          var data = {
              namespace: MESSAGE_NAMESPACE,
              id: 'iframe-ready'
          };
  
          parent.postMessage(JSON.stringify(data), '*');
      }
docs: Send a message to the parent to indicate the page is done loading