Tagged articles
31 articles
Page 1 of 1
JavaScript
JavaScript
Dec 21, 2025 · Frontend Development

Why IndexedDB Outperforms localStorage for Modern Web Apps

This article examines the security, performance, capacity, and query limitations of localStorage, explains how IndexedDB addresses each issue with asynchronous APIs, larger storage, stronger security, and advanced indexing, and introduces helper libraries that simplify its use.

IndexedDBWebfrontend
0 likes · 5 min read
Why IndexedDB Outperforms localStorage for Modern Web Apps
JavaScript
JavaScript
Nov 30, 2025 · Information Security

Why Storing JWT in localStorage Is a Security Nightmare and Safer Alternatives

Storing JWT tokens in localStorage, once a common practice for front‑end authentication, now poses severe XSS risks; this article explains the vulnerabilities, compares HttpOnly cookies, BFF with cookies, and Service Worker‑based solutions, and recommends safer strategies for modern web applications.

BFFCSRFHttpOnly cookie
0 likes · 11 min read
Why Storing JWT in localStorage Is a Security Nightmare and Safer Alternatives
JavaScript
JavaScript
Nov 21, 2025 · Frontend Development

Why IndexedDB Beats localStorage: Performance, Capacity, and Security Explained

This article examines the security risks, synchronous blocking, size limits, and query shortcomings of localStorage, then shows how IndexedDB’s asynchronous API, larger storage capacity, stronger security model, and advanced indexing make it the superior choice for modern web applications.

IndexedDBJavaScriptWeb Performance
0 likes · 6 min read
Why IndexedDB Beats localStorage: Performance, Capacity, and Security Explained
JavaScript
JavaScript
Oct 17, 2025 · Frontend Development

Why IndexedDB Is the Modern Frontend Storage Powerhouse Over localStorage

While localStorage has long been the default client‑side storage for web apps, its security risks, synchronous blocking, limited capacity, and lack of advanced querying make it unsuitable for modern applications, and IndexedDB emerges as a superior, asynchronous, high‑capacity, secure, and query‑rich alternative, especially when paired with helper libraries like idb, Dexie.js, and localForage.

IndexedDBJavaScriptWeb Performance
0 likes · 5 min read
Why IndexedDB Is the Modern Frontend Storage Powerhouse Over localStorage
JavaScript
JavaScript
Sep 14, 2025 · Frontend Development

Why IndexedDB Beats localStorage: Unlock Faster, Safer Browser Storage

This article examines the security, performance, and capacity limitations of localStorage and explains how IndexedDB offers asynchronous operations, larger storage, stronger security, and advanced query capabilities, while also recommending helper libraries to simplify its use.

IndexedDBJavaScriptSecurity
0 likes · 5 min read
Why IndexedDB Beats localStorage: Unlock Faster, Safer Browser Storage
JavaScript
JavaScript
Sep 10, 2025 · Frontend Development

How to Enable Seamless Cross‑Tab Communication in Modern Web Apps

This article explains why synchronizing data across multiple same‑origin browser tabs is essential for a smooth user experience and compares three practical techniques—localStorage events, BroadcastChannel, and SharedWorker—detailing their mechanisms, advantages, and trade‑offs.

BroadcastChannelSharedWorkerWeb APIs
0 likes · 7 min read
How to Enable Seamless Cross‑Tab Communication in Modern Web Apps
JavaScript
JavaScript
Jun 19, 2025 · Information Security

Why Storing JWT in localStorage Is Dangerous and Safer Alternatives for 2025

Storing JWT tokens in localStorage, once a common practice for front‑end authentication, now poses severe XSS risks, prompting developers to adopt more secure methods such as HttpOnly cookies with SameSite protection, BFF‑backed session cookies, or Service Worker‑based token handling, each with trade‑offs.

BFFCSRFJWT
0 likes · 8 min read
Why Storing JWT in localStorage Is Dangerous and Safer Alternatives for 2025
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 15, 2025 · Frontend Development

Master Cross‑Tab Communication: BroadcastChannel vs localStorage in JavaScript

Learn how to synchronize data across multiple browser tabs using the native BroadcastChannel API and the fallback localStorage + storage event, with step‑by‑step code examples, usage scenarios, feature comparisons, compatibility notes, and a reusable TabMessenger class for seamless inter‑tab messaging.

BroadcastChannelJavaScriptWeb API
0 likes · 9 min read
Master Cross‑Tab Communication: BroadcastChannel vs localStorage in JavaScript
JavaScript
JavaScript
Mar 25, 2025 · Frontend Development

Why IndexedDB Is Replacing localStorage for Modern Web Apps

This article examines the security, performance, and capacity limitations of localStorage and explains how IndexedDB offers asynchronous operations, larger storage, stronger security, and advanced querying, supported by real‑world migration examples and helpful libraries.

IndexedDBWeb StoragelocalStorage
0 likes · 6 min read
Why IndexedDB Is Replacing localStorage for Modern Web Apps
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 16, 2024 · Frontend Development

How to Listen to LocalStorage Changes Within the Same Browser Tab: Techniques and Implementations

This article explains why the native storage event only works across different tabs, evaluates traditional polling and proxy approaches, and presents four efficient solutions—including custom StorageEvent, CustomEvent, MessageChannel, and BroadcastChannel—along with practical React and Vue examples for real‑time localStorage monitoring.

EventListenerJavaScriptReact
0 likes · 12 min read
How to Listen to LocalStorage Changes Within the Same Browser Tab: Techniques and Implementations
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 1, 2023 · Frontend Development

Understanding and Using localStorage and sessionStorage in Web Development

This article provides a comprehensive overview of browser localStorage and sessionStorage, covering their differences, compatibility, API usage, storage limits, performance tips, and practical applications such as habit tracking, first‑open prompts, and reducing redundant API calls.

JavaScriptWeb Storagefrontend
0 likes · 15 min read
Understanding and Using localStorage and sessionStorage in Web Development
IT Architects Alliance
IT Architects Alliance
Nov 8, 2021 · Frontend Development

Mastering Browser Caching: HTTP, Cookies, LocalStorage, and IndexedDB Explained

This article provides a comprehensive guide to client‑side caching, covering HTTP strong and conditional caching, cache‑control directives, and local storage options such as cookies, localStorage, sessionStorage, and IndexedDB, while offering practical strategies for cache refresh, browser cache principles, and offline application design.

IndexedDBWeb Performancebrowser caching
0 likes · 14 min read
Mastering Browser Caching: HTTP, Cookies, LocalStorage, and IndexedDB Explained
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 7, 2021 · Frontend Development

Mastering Client-Side Caching: HTTP, Cookies, LocalStorage & IndexedDB Explained

This article explains the fundamentals and strategies of client‑side caching, covering HTTP cache mechanisms (strong and negotiated caching), cache‑control directives, cookie storage, localStorage, sessionStorage, and IndexedDB, and provides practical guidelines for optimizing web performance and reducing network load.

HTTPIndexedDBfrontend
0 likes · 15 min read
Mastering Client-Side Caching: HTTP, Cookies, LocalStorage & IndexedDB Explained
Programmer DD
Programmer DD
Oct 28, 2021 · Frontend Development

Which Browser Storage Is Best for JWT? Cookie vs localStorage vs sessionStorage

This article compares three browser storage options for JWT—Cookie, localStorage, and sessionStorage—examining how each works, their automatic handling, and security implications such as CSRF and XSS, ultimately recommending Cookies with proper SameSite and HttpOnly settings for stronger protection.

CSRFCookieJWT
0 likes · 4 min read
Which Browser Storage Is Best for JWT? Cookie vs localStorage vs sessionStorage
21CTO
21CTO
Aug 28, 2021 · Frontend Development

Explore a Browser‑Based Windows 10 Clone Built with React – Features & Setup

This article introduces a React‑powered project that recreates a simplified Windows 10 desktop experience in the browser, detailing its multi‑user support, persistent file system using LocalStorage and IndexedDB, core features, missing components, setup instructions, and the open‑source libraries it relies on.

IndexedDBReactbrowser OS
0 likes · 5 min read
Explore a Browser‑Based Windows 10 Clone Built with React – Features & Setup
Code Ape Tech Column
Code Ape Tech Column
Jan 8, 2021 · Information Security

Implementing Single Sign‑On (SSO) in B/S Systems: Cookie, Authentication Center, and LocalStorage Approaches

This article explains how Single Sign‑On works in browser‑server applications, compares three implementation methods—parent‑domain cookies, a dedicated authentication center, and cross‑domain LocalStorage with iframe/postMessage—and provides sample code for the latter technique.

AuthenticationCookieSSO
0 likes · 10 min read
Implementing Single Sign‑On (SSO) in B/S Systems: Cookie, Authentication Center, and LocalStorage Approaches
IT Xianyu
IT Xianyu
Nov 25, 2020 · Backend Development

Implementing Single Sign-On (SSO) in B/S Systems: Cookie, Authentication Center, and LocalStorage Approaches

This article explains three practical SSO implementation methods—using a parent‑domain cookie, deploying an authentication center, and leveraging LocalStorage with iframe/postMessage—to share session IDs or tokens across multiple web applications, discussing their advantages, limitations, and code examples.

Authentication CenterCookieJavaScript
0 likes · 10 min read
Implementing Single Sign-On (SSO) in B/S Systems: Cookie, Authentication Center, and LocalStorage Approaches
Selected Java Interview Questions
Selected Java Interview Questions
Sep 23, 2020 · Backend Development

Implementing Single Sign-On (SSO) in Web Applications: Cookie, Authentication Center, and LocalStorage Approaches

This article explains three practical methods for achieving Single Sign‑On in web systems—using a parent‑domain cookie, deploying a dedicated authentication center, and leveraging front‑end LocalStorage with iframe postMessage—to share session or token information across multiple domains.

AuthenticationCookieSSO
0 likes · 11 min read
Implementing Single Sign-On (SSO) in Web Applications: Cookie, Authentication Center, and LocalStorage Approaches
21CTO
21CTO
Sep 16, 2017 · Frontend Development

Mastering Web Caching: Boost Frontend Performance with Smart Strategies

This article explains how various web caching techniques—including browser, proxy, CDN, and storage APIs—work together through HTTP headers, expiration policies, and validation mechanisms to dramatically improve frontend load times and reduce bandwidth usage.

Browser CacheCDNCache-Control
0 likes · 8 min read
Mastering Web Caching: Boost Frontend Performance with Smart Strategies
21CTO
21CTO
Apr 28, 2016 · Frontend Development

Mastering Browser Storage: Cookies, Web Storage, IndexedDB & WebSQL

An in‑depth guide to the evolution of browser storage—covering cookies, Web Storage (localStorage/sessionStorage), IndexedDB, WebSQL, and related APIs—explains their concepts, usage, compatibility, and provides practical code examples for reading, writing, and managing data across modern browsers.

IndexedDBWebSQLbrowser storage
0 likes · 15 min read
Mastering Browser Storage: Cookies, Web Storage, IndexedDB & WebSQL