Commit 24868e13 authored by Fred Chasen's avatar Fred Chasen

Wait for fonts to load before flowing,add missing closing html tag for specs

parent 34b88319
......@@ -115,3 +115,4 @@
<p>Nulla dignissim pellentesque magna ac maximus. Integer id tincidunt erat. Sed elementum posuere augue, quis pharetra mi vehicula in. Nullam rhoncus mi quis lectus gravida dignissim. Pellentesque a tortor ut leo pretium auctor non in massa. Nunc efficitur vestibulum mi, id mattis quam aliquet id. Ut semper tortor sit amet molestie mattis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec laoreet eleifend purus ut sagittis. Nunc consequat vel sapien at convallis. Maecenas sollicitudin quis justo non varius.</p>
</section>
</body>
</html>
......@@ -112,3 +112,4 @@
<p>Nulla dignissim pellentesque magna ac maximus. Integer id tincidunt erat. Sed elementum posuere augue, quis pharetra mi vehicula in. Nullam rhoncus mi quis lectus gravida dignissim. Pellentesque a tortor ut leo pretium auctor non in massa. Nunc efficitur vestibulum mi, id mattis quam aliquet id. Ut semper tortor sit amet molestie mattis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec laoreet eleifend purus ut sagittis. Nunc consequat vel sapien at convallis. Maecenas sollicitudin quis justo non varius.</p>
</section>
</body>
</html>
......@@ -95,3 +95,4 @@
</section>
</body>
</html>
......@@ -95,3 +95,4 @@
</section>
</body>
</html>
......@@ -240,3 +240,4 @@
</section>
</body>
</html>
......@@ -72,3 +72,4 @@
</p>
</body>
</html>
......@@ -191,3 +191,4 @@
</section>
</body>
</html>
......@@ -127,4 +127,5 @@
</p>
</section>
</body>
</body>
</html>
......@@ -198,3 +198,4 @@
</section>
</body>
</html>
......@@ -111,3 +111,4 @@
</section>
</body>
</html>
......@@ -128,3 +128,4 @@
</section>
</body>
</html>
......@@ -160,3 +160,4 @@
</section>
</body>
</html>
......@@ -130,3 +130,4 @@
</section>
</body>
</html>
......@@ -173,3 +173,4 @@
</section>
</body>
</html>
......@@ -42,3 +42,4 @@
</section>
</body>
</html>
......@@ -42,3 +42,4 @@
</section>
</body>
</html>
......@@ -42,3 +42,4 @@
</section>
</body>
</html>
......@@ -115,3 +115,4 @@
</section>
</body>
</html>
......@@ -107,3 +107,4 @@
</section>
</body>
</html>
......@@ -113,3 +113,4 @@
</section>
</body>
</html>
......@@ -140,3 +140,4 @@
</section>
</body>
</html>
......@@ -104,3 +104,4 @@
</p>
</section>
</body>
</html>
......@@ -142,3 +142,4 @@
</section>
</body>
</html>
......@@ -101,3 +101,4 @@
</section>
</body>
</html>
......@@ -168,3 +168,4 @@
</section>
</body>
</html>
......@@ -91,6 +91,7 @@ class Chunker {
this.pageTemplate = document.createElement("template");
this.pageTemplate.innerHTML = TEMPLATE;
}
async flow(content, renderTo) {
......@@ -108,6 +109,10 @@ class Chunker {
await this.hooks.afterParsed.trigger(parsed, this);
if (typeof document.fonts.ready !== "undefined") {
await document.fonts.ready;
}
await this.render(parsed, renderTo);
await this.hooks.afterRendered.trigger(this.pages, this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment