im already tracer
This commit is contained in:
@@ -755,10 +755,16 @@
|
|||||||
const init = async () => {
|
const init = async () => {
|
||||||
// Run emoji loading and activity fetching in parallel — avatars appear
|
// Run emoji loading and activity fetching in parallel — avatars appear
|
||||||
// immediately without waiting for the emoji API to respond first.
|
// immediately without waiting for the emoji API to respond first.
|
||||||
Promise.all([
|
// After both settle, if emojis finished after the initial render, re-render
|
||||||
loadEmojis(),
|
// from cache so custom emoji images show on first page load.
|
||||||
loadActivity()
|
const emojiPromise = loadEmojis();
|
||||||
]);
|
const activityPromise = loadActivity();
|
||||||
|
await activityPromise;
|
||||||
|
await emojiPromise;
|
||||||
|
// If emojis were not yet available when activity first rendered, re-render now.
|
||||||
|
if (Object.keys(customEmojis).length > 0 && window._sidebarActivityCache.length > 0) {
|
||||||
|
renderFromCache();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Listen for live activity from f0ckm.js
|
// Listen for live activity from f0ckm.js
|
||||||
|
|||||||
Reference in New Issue
Block a user