From 4d4c4e7b68ad8c31c3ec24386253504b92a58b57 Mon Sep 17 00:00:00 2001 From: "David B. Kinder" Date: Thu, 15 Aug 2019 08:50:45 -0700 Subject: [PATCH] doc: remove modernizr.min.js modernizr.min.js is no longer used by Sphinx's rtd theme and is causing some browsers to have a noticable flash when pages are loaded. While we can't easily remove it from the RTD theme, we can replace the script with an empty file instead. Signed-off-by: David B. Kinder --- doc/static/js/modernizr.min.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/static/js/modernizr.min.js diff --git a/doc/static/js/modernizr.min.js b/doc/static/js/modernizr.min.js new file mode 100644 index 000000000..3ee5289f9 --- /dev/null +++ b/doc/static/js/modernizr.min.js @@ -0,0 +1,5 @@ +/* modernizr.min.js is causing unnecessary reloads of a page causing + * flashing of the browser window during page load. This empty script + * effectively wipes out the modernizr.min.js loaded by the Sphinx + * rtd theme + */