diff --git a/examples/index.html b/examples/index.html
index 9245dc83496aba753838e4040d3f1a0978765e5e..a5e0a48644342d367ad11813fcbe876388022c47 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -92,13 +92,16 @@
     }
     term.onBinary(onBinary);
     term.onData(onBinary)
+    term.resize(140,43);
     window.Module = {
       preRun: () => {
         FS.init(stdin, stdout, stderr);
       },
       postRun: [],
       onRuntimeInitialized: () => {
-        // Handle screen resize:
+        if (window.Module._ftxui_on_resize == undefined)
+          return;
+
         const fit_addon = new (FitAddon.FitAddon)();
         term.loadAddon(fit_addon);
         fit_addon.fit();