We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384be75 commit a9e4cd9Copy full SHA for a9e4cd9
src/lib/loadPlugins.js
@@ -10,8 +10,8 @@ export default async function loadPlugins() {
10
toast(strings["loading plugins"]);
11
}
12
13
- // Load plugins sequentially to better handle errors
14
- for (const pluginDir of plugins) {
+ // Load plugins concurrently
+ const loadPromises = plugins.map(async (pluginDir) => {
15
const pluginId = Url.basename(pluginDir.url);
16
try {
17
await loadPlugin(pluginId);
@@ -22,7 +22,8 @@ export default async function loadPlugins() {
22
toast(`Failed to load plugin: ${pluginId}`);
23
results.push(false);
24
25
- }
+ });
26
27
+ await Promise.allSettled(loadPromises);
28
return results.filter(Boolean).length;
29
0 commit comments