Skip to content

Commit

Permalink
static/frontend: do not access elements until the page is loaded
Browse files Browse the repository at this point in the history
When the js file is cached in the browser, it's very likely that
it will be executed before the DOM is ready. In this case, the
returned elements of a query is not the expected ones most of the
time. So the js code that accesses elements should be delayed
until the page is fully loaded.

Fixes golang/go#52502
  • Loading branch information
ZekeLu committed Apr 23, 2022
1 parent 0c18560 commit 72a1c58
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
Loading

0 comments on commit 72a1c58

Please sign in to comment.