   <!DOCTYPE html><html><head>
     <script>
       window.FactlinkConfig = #{JSON.stringify(FactlinkConfig)};
-      window.parent.FACTLINK.iframeLoaded();
+      window.parent.FACTLINK_ON_IFRAME_LOAD();
     </script>
   </head><body></body></html>
 """

return if window.FACTLINK?

#### Create iframe


  coreScriptTag.onload = coreScriptTag.onreadystatechange = null
  scriptLoaded = true

  window.FACTLINK = iframe.contentWindow.Factlink
  jQuery?(window).trigger 'factlink.libraryLoaded'

#### Load iframe with script tag

window.FACTLINK_ON_IFRAME_LOAD = ->
  iframe.contentWindow.document.head.appendChild coreScriptTag

iframeDoc = iframe.contentWindow.document
