diff --git a/editor/file_system/editor_file_system.cpp b/editor/file_system/editor_file_system.cpp index a286f0956f..cdfb403f2f 100644 --- a/editor/file_system/editor_file_system.cpp +++ b/editor/file_system/editor_file_system.cpp @@ -3285,7 +3285,12 @@ void EditorFileSystem::reimport_files(const Vector &p_files) { // Emit the resource_reimporting signal for the single file before the actual importation. emit_signal(SNAME("resources_reimporting"), reloads); -#ifdef THREADS_ENABLED +#ifdef WEB_ENABLED + // On web, busy-wait loops on the main thread block the JavaScript event loop, + // causing the browser tab to appear frozen. Disable threaded imports entirely. + // See GH-112072 for details. + bool use_multiple_threads = false; +#elif defined(THREADS_ENABLED) bool use_multiple_threads = GLOBAL_GET("editor/import/use_multiple_threads"); #else bool use_multiple_threads = false; @@ -3750,7 +3755,9 @@ void EditorFileSystem::remove_import_format_support_query(Ref