Skip to content

Commit

Permalink
Improve first render while loading
Browse files Browse the repository at this point in the history
  • Loading branch information
xcmd-io committed Dec 11, 2023
1 parent 21c3ee6 commit 4fdad97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xcmd-tauri/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
<link rel="icon" href="floppy.svg" type="image/svg+xml">
<title>Cross Commander</title>
<script defer type="module" src="index.mjs"></script>
<style>body.loading { display: none; }</style>
</head>
<body>
<body class="loading">
<div id="vsplit" class="vsplit">
<div class="vsplit-pane">
<ul class="tabs">
Expand Down
2 changes: 2 additions & 0 deletions xcmd-tauri/dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if (theme) {

document.adoptedStyleSheets.push(stylesheet);

document.body.className = '';

const vsplit = /** @type {HTMLElement} */ (document.getElementById('vsplit'));
const leftPaneElement = /** @type {HTMLElement} */ (vsplit.firstElementChild);
const rightPaneElement = /** @type {HTMLElement} */ (leftPaneElement.cloneNode(true));
Expand Down

0 comments on commit 4fdad97

Please sign in to comment.