title: Font face from file do not load during debug
body: <p>A font from file is not loading during debug. Only at the end of execution it is displayed. This is causing troubles to calculate precisely the size of my divs. </p>
  
  <p><a href="https://i.stack.imgur.com/uAWqk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uAWqk.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/mYkVq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mYkVq.png" alt="enter image description here"></a></p>
  
  <p>I wrote a fiddle just to show the code, because the font is paid.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function test(){
      var body = document.getElementsByTagName("BODY")[0];
      var div = document.createElement("div");
      div.innerHTML = "The font is not Kohinnor in debug";
      body.appendChild(div);
      console.log("end");
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>@font-face {
    font-family: KohinoorBangla;
    src: url("KohinoorBangla.ttc");
  }
  
  body{
      font-family:KohinoorBangla;
      font-size: 20px;
      color:red;
      margin: 20mm;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script src="script.js"&gt;&lt;/script&gt;
      &lt;link href="style.css" rel="stylesheet"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script&gt;test()&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>