Skip to content

Commit

Permalink
perf: Use dynamic importing for settings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Sep 27, 2024
1 parent bb9fbf2 commit 3c144ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { cssHelper, removeAllStyles } from "./modules/renderer/css.js";
import { initTransitioSettings, transitioSettingsUpdateStyle, transitioSettingsResetStyle } from "./modules/renderer/settings.js";

transitio.onUpdateStyle((event, args) => {
cssHelper(args.path, args.css, args.enabled, args.meta);
Expand All @@ -12,6 +11,7 @@ transitio.rendererReady();
* @param {HTMLElement} view The settings view element.
*/
async function onSettingWindowCreated(view) {
const { initTransitioSettings, transitioSettingsUpdateStyle, transitioSettingsResetStyle } = await import("./modules/renderer/settings.js");
const container = await initTransitioSettings(view);
transitio.onUpdateStyle((event, args) => {
transitioSettingsUpdateStyle(container, args);
Expand Down

0 comments on commit 3c144ad

Please sign in to comment.