aboutsummaryrefslogtreecommitdiff
path: root/brep/mod-package-details.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'brep/mod-package-details.cxx')
-rw-r--r--brep/mod-package-details.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/brep/mod-package-details.cxx b/brep/mod-package-details.cxx
index 2c7c04d..f2f8bd6 100644
--- a/brep/mod-package-details.cxx
+++ b/brep/mod-package-details.cxx
@@ -119,6 +119,15 @@ handle (request& rq, response& rs)
s << ~TITLE
<< CSS_LINKS (path ("package-details.css"), root)
+ //
+ // This hack is required to avoid the "flash of unstyled content", which
+ // happens due to the presence of the autofocus attribute in the input
+ // element of the search form. The problem appears in Firefox and has a
+ // (4-year old, at the time of this writing) bug report:
+ //
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=712130.
+ //
+ << SCRIPT << " " << ~SCRIPT
<< ~HEAD
<< BODY
<< DIV_HEADER (root)