mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 16:42:19 +00:00
Reduces terminal scrollback for faster rendering and preloads WASM for quicker terminal startup. Optimizes SSH connection parameters for faster failure detection and lower latency (shorter timeout, longer keepalive interval, prioritized fast ciphers and key exchange). Decreases IPC overhead by buffering terminal data output before sending to the frontend, reducing message frequency and improving efficiency.
21 lines
660 B
TypeScript
Executable File
21 lines
660 B
TypeScript
Executable File
import { init as initGhostty } from 'ghostty-web';
|
|
import ReactDOM from 'react-dom/client';
|
|
import App from './App';
|
|
|
|
// Pre-load Ghostty WASM immediately on app start for faster terminal open
|
|
initGhostty().catch((err) => {
|
|
console.warn('[Ghostty] WASM preload failed, will retry on terminal open:', err);
|
|
});
|
|
|
|
const rootElement = document.getElementById('root');
|
|
if (!rootElement) {
|
|
throw new Error("Could not find root element to mount to");
|
|
}
|
|
|
|
const root = ReactDOM.createRoot(rootElement);
|
|
root.render(
|
|
// StrictMode causes double renders in development - disabled for performance testing
|
|
// <React.StrictMode>
|
|
<App />
|
|
// </React.StrictMode>
|
|
); |