Rollup merge of #142497 - GuillaumeGomez:fix-random-search-failure, r=lolbinarycat

Fix random failure when JS code is executed when the whole file was not read yet

Very randomly (and rarely), when I arrived on a page with `?search=something` in the URL, I got this error:

![Screenshot From 2025-06-14 11-27-46](https://github.com/user-attachments/assets/4b61b067-4e80-49c1-9a45-cff1509bf86a)

Moving the `initSearch` function at the bottom to ensure everything has been loaded fixes the issue.

PS: Sorry for the noise. Pushed to the wrong branch and https://github.com/rust-lang/rust/pull/142496 closed. ><
This commit is contained in:
Trevor Gross 2025-06-20 13:36:00 -04:00 committed by GitHub
commit d11ad6cff4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available