From: Tony Crisci Date: Tue, 1 Apr 2014 05:46:28 +0000 (-0400) Subject: Bugfix: Use DOM loaded event for TOC X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d8e239e6e3d2886f3caec8d21d808879900e8c1c;p=i3%2Fi3.github.io Bugfix: Use DOM loaded event for TOC The document "DOMContentLoaded" event will fire as soon as the DOM is ready to be manipulated by the TOC building script. The window.onload function should not be used for this because it waits until the window is rendered in the browser to run the script, causing a flash of partially rendered content. --- diff --git a/_docs/conf/i3html.conf b/_docs/conf/i3html.conf index 362d8e9..7202ef2 100644 --- a/_docs/conf/i3html.conf +++ b/_docs/conf/i3html.conf @@ -560,7 +560,7 @@ ifdef::linkcss[] @@ -569,7 +569,7 @@ ifndef::linkcss[]