« * K @coderonfire.com

Andrew @coderonfire.com

2026-05-28 12:06 UTC

Learnt that combining `requestIdleCallback` with dynamic `import` can give your site a nice initial load performance boost as it delays loading of split code that isn't needed for first paint. developer.mozilla.org/en-US/docs/W... #webdev #performance

1 picture (not shown on this phone): export const whenIdle = (callback: () => void, timeoutDelay = 200): void => { if (window.requestIdleCallback) { window.…

4 likes, 0 reposts, 0 replies

3 Next post4 More from @coderonfire.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup