Skip to content

🎥 Make videos programmatically with React

prepend CSS style instead of appendign

Jonny Burger0d8c8770e551
diff --git a/packages/core/src/default-css.ts b/packages/core/src/default-css.ts
index 6a59006a98..7bdba7a456 100644
--- a/packages/core/src/default-css.ts
+++ b/packages/core/src/default-css.ts
@@ -15,7 +15,7 @@ export const injectCSS = (css: string) => {
style.appendChild(document.createTextNode(css));
- head.appendChild(style);
+ head.prepend(style);
injected[css] = true;
};