mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[Toolbar] fix issue where requestIdleCallback would take forever (#9302)
This commit is contained in:
parent
4b9d657ff2
commit
9807582b69
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ export class AstroDevOverlay extends HTMLElement {
|
|||
if ('requestIdleCallback' in window) {
|
||||
window.requestIdleCallback(async () => {
|
||||
this.plugins.map((plugin) => this.initPlugin(plugin));
|
||||
});
|
||||
}, {timeout: 300});
|
||||
} else {
|
||||
setTimeout(async () => {
|
||||
this.plugins.map((plugin) => this.initPlugin(plugin));
|
||||
|
|
Loading…
Add table
Reference in a new issue