aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-repository-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-24 20:37:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-24 20:37:54 +0300
commit3ea79208de994a896397b3c027f398e4ecbcc59f (patch)
treef5923928ae1682da3ce4397cd65ba0445be33a7a /mod/mod-repository-details.cxx
parent581de7e14caeb79104702db4ce30d190b629059c (diff)
Fix flash of unstyled content for package version details and repository details pages
Diffstat (limited to 'mod/mod-repository-details.cxx')
-rw-r--r--mod/mod-repository-details.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/mod-repository-details.cxx b/mod/mod-repository-details.cxx
index 3a73955..9e791ef 100644
--- a/mod/mod-repository-details.cxx
+++ b/mod/mod-repository-details.cxx
@@ -85,6 +85,15 @@ handle (request& rq, response& rs)
<< HEAD
<< TITLE << title << ~TITLE
<< CSS_LINKS (path ("repository-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, options_->logo (), options_->menu ())