aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample/sample.go
diff options
context:
space:
mode:
authorJamal Carvalho <jamal@golang.org>2021-11-12 20:00:51 +0000
committerJamal Carvalho <jamal@golang.org>2021-11-15 18:12:05 +0000
commite4128003cbb95f3ff3b5795f5db9524f6a6f77e7 (patch)
treedaf27aee28d68593195fb8df2034cd33caf7107b /internal/testing/sample/sample.go
parent7208ea09dbeb5c160d440bfd5542d0ad4190d0bc (diff)
downloadgo-x-pkgsite-e4128003cbb95f3ff3b5795f5db9524f6a6f77e7.tar.xz
static: fix jump modal on chrome
The jump modal breaks in Chrome on pages with a lot of DOM elements. As a workaround we delay the initialization of the modal JS until the window has called the load event. Fixes golang/go#49455 Fixes golang/g0#49556 Change-Id: I846b80538ee7d2a2b821078e9bb05ee7499aac02 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/363735 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/testing/sample/sample.go')
0 files changed, 0 insertions, 0 deletions