Address Vite networking issue
What does this MR do and why?
This MR attemps to mitigate the net:ERR_FAILED
error with Vite during local development. It forces a page reload if the browser failed to load JS with Vite enabled.
More on the error here: #454520 (comment 1904899196)
How to set up and validate locally
- Open any merge request changes page in a new tab until you see
net:ERR_FAILED
error (it will take multiple attempts) - The page should refresh and load successfully