优化聊天室首屏和在线名单性能

This commit is contained in:
2026-04-25 03:14:07 +08:00
parent c410897231
commit 128b52d0aa
8 changed files with 166 additions and 27 deletions
@@ -792,7 +792,7 @@
});
/** 页面加载时恢复进行中的场次 */
document.addEventListener('DOMContentLoaded', async () => {
document.addEventListener('DOMContentLoaded', () => window.deferChatGameBootstrap(async () => {
try {
const panel = document.getElementById('horse-race-panel');
const histData = panel ? await Alpine.$data(panel).requestJson('/horse-race/history') : { history: [] };
@@ -846,5 +846,5 @@
} catch (e) {
console.warn('[赛马] 初始化失败', e);
}
});
}));
</script>