7b23618ae7
When window resize fires, CSS layout hasn't settled yet. Adding requestAnimationFrame ensures the browser has calculated new sizes before xterm.js fit() reads the container dimensions. Reduced debounce from 250ms to 100ms since rAF handles the layout timing.