From ce85b819ff63b5e9ca57dfe7d4d520851921802e Mon Sep 17 00:00:00 2001 From: Nils Lindemann Date: Mon, 27 May 2024 11:00:25 +0200 Subject: Prevent font flashing in the docs (#23622) ... by moving the Google font includes near the top of the head. By including them as early as possible, they are known, when the browser starts rendering the body. Test it by making the change manually in `doc/html/system.html` and then press ctrl+f5 (reload without cache). This removes the font flashing. Tested in Chrome and Firefox. --- nimdoc/testproject/expected/theindex.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'nimdoc/testproject/expected/theindex.html') diff --git a/nimdoc/testproject/expected/theindex.html b/nimdoc/testproject/expected/theindex.html index 6b811f5e2..71a487e0c 100644 --- a/nimdoc/testproject/expected/theindex.html +++ b/nimdoc/testproject/expected/theindex.html @@ -7,6 +7,10 @@ Index + + + + @@ -423,8 +427,5 @@ - - - -- cgit 1.4.1-2-gfad0