Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit e94ba3a

Browse files
committed
fix(inject-client-css.ts): fix flicking queueMicrotask to requestAnimationFrame
1 parent c22e81a commit e94ba3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_internal/utils/inject-client-css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function createStyleElement(hash: string): HTMLStyleElement | null {
1818
export function injectClientCSS(hash: string, sheet: string, context: string) {
1919
if (isDevelopment) console.log('💫 ' + context + ' executing ...' + sheet);
2020
if (isServer) return;
21-
queueMicrotask(() => {
21+
requestAnimationFrame(() => {
2222
styleCleanUp();
2323
});
2424
hashCache[hash] = hash;

0 commit comments

Comments
 (0)