Skip to content

Commit 947c1cc

Browse files
pulsejetszaimen
authored andcommitted
Make unsupported browser check asynchronous
This check is very expensive, and will pass almost 100% of the time. Related #36728 Depends on #38329 Signed-off-by: Varun Patil <varunpatil@ucla.edu>
1 parent 8cca865 commit 947c1cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/unsupported-browser-redirect.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2020
*/
2121

22-
import { testSupportedBrowser } from './utils/RedirectUnsupportedBrowsers.js'
23-
2422
if (!window.TESTING && !OC?.config?.no_unsupported_browser_warning) {
25-
testSupportedBrowser()
23+
window.addEventListener('DOMContentLoaded', async function() {
24+
const { testSupportedBrowser } = await import('./utils/RedirectUnsupportedBrowsers.js')
25+
testSupportedBrowser()
26+
})
2627
}

0 commit comments

Comments
 (0)