You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use the search bar on this documentation causes the browser to hang, due to the site trying to load a 28 MB JSON file (the problematic code is at https://microsoft.github.io/windows-docs-rs/doc/search-index.js). On my laptop this causes the fans to spin up like jet engines, followed by (about half the time) the tab crashing with an out of memory error.
Instead of a massive JSON file, I would recommend instead using the IndexedDB API, which also has the benefit of not needing to be reloaded every time the user visits the site.
The text was updated successfully, but these errors were encountered:
Microsoft's Windows crate has its documentation generated with rustdoc which can be found at https://microsoft.github.io/windows-docs-rs/doc/windows/.
Trying to use the search bar on this documentation causes the browser to hang, due to the site trying to load a 28 MB JSON file (the problematic code is at https://microsoft.github.io/windows-docs-rs/doc/search-index.js). On my laptop this causes the fans to spin up like jet engines, followed by (about half the time) the tab crashing with an out of memory error.
Instead of a massive JSON file, I would recommend instead using the IndexedDB API, which also has the benefit of not needing to be reloaded every time the user visits the site.
The text was updated successfully, but these errors were encountered: