Engineering archive

Pre-2025 writing, still here for SEO and reference. Back to articles

Advanced Strategies for Optimizing Load Sequences: Delivering What Matters First

This comprehensive guide delves into advanced strategies on how to structure and sequence asset loading in JavaScript applications to prioritize meaningful content. Learn about reducing First Contentful Paint (FCP) and Largest Contentful Paint (LCP) by sequencing the delivery of the right bytes first.

Optimistic Updates: Elevating Perceived Performance in Frontend Applications

Optimistic updates provide a powerful approach to enhancing the perceived performance of applications by anticipating successful operations and updating the user interface (UI) before server confirmation. This article delves into the efficient implementation of optimistic updates using React, React Query, and SWR, and discusses how they can significantly improve user experience (UX).

about

Ehsan Hosseini

Ehsan Hosseini

me [at] ehosseini [dot] info

I work on what AI agents are allowed to do inside companies, and whether you can prove who authorized it. I write about it here, and build it at my company.