Tagged articles
37 articles
Page 1 of 1
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
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
FunTester
FunTester
Apr 17, 2025 · Frontend Development

How to Build Reliable Timers in Chrome Extensions with Manifest V3

This guide explains the shift from persistent background scripts to Service Workers in Manifest V3, compares three timer implementation strategies—including chrome.alarms, content‑script intervals, and event‑driven storage checks—and provides best‑practice recommendations for idempotency, logging, deduplication, and state persistence.

Background ScriptsChrome ExtensionService Worker
0 likes · 12 min read
How to Build Reliable Timers in Chrome Extensions with Manifest V3
FunTester
FunTester
Apr 13, 2025 · Frontend Development

Mastering Timed Tasks in Chrome Extensions: From Persistent Background to On‑Demand Execution

This guide explains how to implement reliable scheduled tasks in Chrome extensions under Manifest V3, covering the shift from persistent background scripts to service workers, three practical approaches—including chrome.alarms, content script timers, and event‑driven simulations—plus best‑practice tips for idempotency, logging, and state persistence.

Chrome ExtensionIdempotencyServer Push
0 likes · 12 min read
Mastering Timed Tasks in Chrome Extensions: From Persistent Background to On‑Demand Execution
Goodme Frontend Team
Goodme Frontend Team
Mar 3, 2025 · Frontend Development

Enable Offline HLS Playback on Android TV with Service Workers

This article details a solution for playing newly added drink videos on Android TV devices by converting large files into HLS streams, using service workers to cache each fragment in IndexedDB, and employing hls.js to enable seamless offline playback while managing memory constraints.

Android TVHLS.jsOffline Playback
0 likes · 8 min read
Enable Offline HLS Playback on Android TV with Service Workers
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 15, 2025 · Frontend Development

Implementing Stale‑While‑Revalidate with Service Workers for Faster Page Loads

This article explains how to use Service Workers to apply a Stale‑While‑Revalidate caching strategy, detailing the three‑step process, essential APIs, code examples for intercepting and cloning responses, and a complete Express‑based demo to improve first‑visit page performance.

Service WorkerStale-While-RevalidateWeb Performance
0 likes · 12 min read
Implementing Stale‑While‑Revalidate with Service Workers for Faster Page Loads
ByteDance Web Infra
ByteDance Web Infra
Aug 20, 2024 · Frontend Development

Lessons Learned Switching to Rspack: Migration Experience, Configuration Tips, and Performance Results

The article shares a developer’s experience migrating two large Webpack projects to Rspack, covering why Rspack was chosen, detailed lessons on TypeScript handling, CSS extraction, service‑worker support, plugin compatibility, CLI differences, performance benchmarks, and future expectations for the Rust‑based bundler.

RspackService WorkerTypeScript
0 likes · 15 min read
Lessons Learned Switching to Rspack: Migration Experience, Configuration Tips, and Performance Results
HelloTech
HelloTech
Feb 28, 2024 · Frontend Development

Common Front-End Caching Techniques and Service Worker Guide

The article explains common front‑end caching methods—including HTTP headers, browser storage, and HTML5 manifests—then provides a comprehensive guide to Service Workers, covering their lifecycle, registration, typical install/activate/fetch handlers, cache‑update strategies, background sync, and integration with Taro via Workbox.

OfflineService WorkerWeb Development
0 likes · 18 min read
Common Front-End Caching Techniques and Service Worker Guide
Bilibili Tech
Bilibili Tech
Feb 6, 2024 · Frontend Development

Advanced Interception Techniques in Front-End Development: API Overriding, Service Workers, and Sandbox Strategies

Advanced interception techniques—such as overriding browser APIs, using ServiceWorkers, employing MutationObservers, creating Proxy‑based sandboxes, and configuring server‑side gateways—provide a flexible middle layer for error reporting, request monitoring, micro‑frontend isolation, and remote debugging, while demanding careful adherence to security policies.

InterceptionJavaScriptProxy
0 likes · 16 min read
Advanced Interception Techniques in Front-End Development: API Overriding, Service Workers, and Sandbox Strategies
JD Cloud Developers
JD Cloud Developers
Dec 19, 2023 · Frontend Development

Mastering Offline Caching with Service Workers: A Deep Dive into PWA Strategies

This article explains how Progressive Web Apps use Service Workers to provide offline access, installability, push notifications, and responsive layouts, and it walks through registration, caching strategies, dynamic cache management, expiration handling, and practical code examples for robust offline experiences.

Cache StrategiesJavaScriptPWA
0 likes · 27 min read
Mastering Offline Caching with Service Workers: A Deep Dive into PWA Strategies
HomeTech
HomeTech
May 24, 2023 · Frontend Development

Understanding AVIF Image Format: Benefits, Comparison, Conversion Tools, and Integration in Web Projects

This article explains the AVIF image format, its superior compression and quality compared to JPEG and WebP, provides a detailed comparison of image formats, offers conversion tools and command‑line examples, and shows how to integrate AVIF on the client, server, and via JavaScript polyfills for modern web development.

AVIFNode.jsService Worker
0 likes · 13 min read
Understanding AVIF Image Format: Benefits, Comparison, Conversion Tools, and Integration in Web Projects
360 Tech Engineering
360 Tech Engineering
Apr 27, 2023 · Frontend Development

Guide to Developing Chrome Extensions with Manifest V3

This article explains the fundamentals of Chrome extension development using Manifest V3, covering concepts such as the manifest file, service workers, content scripts, UI pages, and provides step‑by‑step code examples to build a color‑extraction extension.

Chrome ExtensionContent ScriptJavaScript
0 likes · 14 min read
Guide to Developing Chrome Extensions with Manifest V3
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 17, 2022 · Frontend Development

Understanding Online IDEs: Types, Advantages, and Core Implementation Principles

This article examines the landscape of browser‑based development environments, compares popular online IDEs such as CodeSandbox, StackBlitz, CodePen, and VueSFCREPL, outlines their architectural components, highlights their strengths and limitations, and provides concrete code examples of their underlying mechanisms.

CodeSandboxService WorkerStackBlitz
0 likes · 19 min read
Understanding Online IDEs: Types, Advantages, and Core Implementation Principles
37 Interactive Technology Team
37 Interactive Technology Team
Sep 26, 2022 · Frontend Development

Web Push Notification Implementation with Firebase

This guide details how to implement web push notifications with Firebase, explaining the underlying push principles, step‑by‑step project setup—including service‑worker registration, token management, and message handling for both notification and data payloads—while also addressing common issues such as service‑worker updates, cross‑browser compatibility, and permission management.

Notification APIPush ServiceService Worker
0 likes · 12 min read
Web Push Notification Implementation with Firebase
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
May 27, 2022 · Frontend Development

How We Cut CodeSandbox Sandbox Build Time from 2 Minutes to 1 Second

This article details the background, architecture, and step‑by‑step performance optimizations—including Packager caching, request reduction, Service‑Worker caching, and Webpack‑style externals—that reduced a CodeSandbox sandbox build from around two minutes to roughly one second.

CodeSandboxFrontend BuildPerformance Optimization
0 likes · 23 min read
How We Cut CodeSandbox Sandbox Build Time from 2 Minutes to 1 Second
Alibaba Terminal Technology
Alibaba Terminal Technology
May 18, 2022 · Frontend Development

How Alibaba Cloud Security Achieved Sub‑Second Front‑End Performance with PWA and PCP

Alibaba Cloud Security’s front‑end team tackled the “1‑second battle” by redefining performance with the PCP metric and leveraging PWA techniques—service workers, skeleton screens, aggressive code‑splitting, and micro‑frontend architecture—to shrink perceived load times from seconds to sub‑400 ms across eight products.

PCP metricPWAService Worker
0 likes · 9 min read
How Alibaba Cloud Security Achieved Sub‑Second Front‑End Performance with PWA and PCP
政采云技术
政采云技术
Apr 26, 2022 · Frontend Development

Understanding Web Workers, SharedWorker, and ServiceWorker in Frontend Development

This article explains the concepts, creation methods, communication APIs, debugging techniques, and typical use cases of ordinary Web Workers, SharedWorkers, and ServiceWorkers, illustrating how they enable multithreaded computation, cross‑tab data sharing, and offline caching to improve web performance and user experience.

Service WorkerSharedWorkerWeb Workers
0 likes · 13 min read
Understanding Web Workers, SharedWorker, and ServiceWorker in Frontend Development
IT Services Circle
IT Services Circle
Apr 23, 2022 · Frontend Development

Progressive Web Apps (PWA) Overview, Implementation, and JavaScript Workers

This article provides a comprehensive overview of Progressive Web Apps (PWA), covering their concepts, benefits, real-world case studies, implementation steps with Service Workers, App Shell, manifest files, and related JavaScript workers such as Web Workers, Service Workers, and Worklets, while also discussing their development challenges and future prospects.

JavaScriptPWAProgressive Web App
0 likes · 22 min read
Progressive Web Apps (PWA) Overview, Implementation, and JavaScript Workers
ELab Team
ELab Team
Sep 16, 2021 · Frontend Development

How to Achieve Long-Term Offline Caching with HTTP, AppCache, and Service Workers

This article explains why server‑generated URLs with authentication break traditional HTTP caching and then guides readers through three offline‑caching strategies—HTTP strong and negotiated caching, the now‑deprecated Application Cache, and modern Service Workers—providing practical code examples and best‑practice recommendations.

Application CacheHTTP CachingOffline
0 likes · 21 min read
How to Achieve Long-Term Offline Caching with HTTP, AppCache, and Service Workers
Trip Tech Team
Trip Tech Team
Aug 19, 2021 · Frontend Development

How to Implement Offline Web Push Notifications in Chrome with Service Workers

This article examines how to implement offline Web Push notifications in Chrome using Service Workers, covering background, technical concepts such as BrowserId and the Notifications API, step-by-step code for permission handling, key generation, BrowserId retrieval, and server‑side message delivery.

BrowserIdChromeNotifications
0 likes · 16 min read
How to Implement Offline Web Push Notifications in Chrome with Service Workers
Beike Product & Technology
Beike Product & Technology
Apr 30, 2021 · Frontend Development

Progressive Web Apps (PWA): An Overview

Progressive Web Apps (PWA) are web applications that leverage Service Workers and modern web technologies to deliver native-like functionality, including offline capabilities, push notifications, and home screen installation, enhancing user experience across devices.

Offline ApplicationsPWAProgressive Web Apps
0 likes · 9 min read
Progressive Web Apps (PWA): An Overview
ByteFE
ByteFE
Nov 19, 2020 · Frontend Development

Implementing a Progressive Web App (PWA) for Sharee Mobile: Features, Architecture, and Lessons Learned

This article explains the concept of Progressive Web Apps, compares them with native and traditional web apps, details the implementation of core PWA features such as App Manifest, Service Worker, caching strategies, push notifications, and Workbox best practices, and shares metrics, challenges, and solutions encountered during the Sharee mobile project.

JavaScriptPWAService Worker
0 likes · 28 min read
Implementing a Progressive Web App (PWA) for Sharee Mobile: Features, Architecture, and Lessons Learned
WecTeam
WecTeam
Apr 29, 2020 · Frontend Development

Master Front‑End Performance: Transfer Optimizations, Lazy Loading & Critical CSS

This article presents an in‑depth front‑end performance checklist covering transfer optimizations, script loading strategies, IntersectionObserver lazy loading, critical CSS inlining, resource hints, service‑worker caching, connection‑aware components, and techniques to prevent layout shifts and improve rendering speed.

Service Workercritical CSSfrontend performance
0 likes · 36 min read
Master Front‑End Performance: Transfer Optimizations, Lazy Loading & Critical CSS
360 Tech Engineering
360 Tech Engineering
Mar 25, 2020 · Frontend Development

Service Worker Overview: Concepts, Caching Strategies, Lifecycle, and Practical Implementation

This article introduces Service Workers as the core technology of progressive web apps, explains their advantages, security constraints, lifecycle events, CacheStorage API usage, various caching strategies, version‑controlled caching with webpack, background synchronization, and demonstrates how to pass data using IndexedDB, all illustrated with complete code examples.

Background SyncCacheStorageIndexedDB
0 likes · 21 min read
Service Worker Overview: Concepts, Caching Strategies, Lifecycle, and Practical Implementation
iQIYI Technical Product Team
iQIYI Technical Product Team
Dec 13, 2019 · Frontend Development

Progressive Web Apps (PWA) Overview, Service Worker Fundamentals, and iQiyi PC Implementation

The article explains Progressive Web Apps—offline‑capable, installable web apps built with Service Workers and a manifest.json—detailing their core qualities, installation requirements, and lifecycle, and showcases iQiyi’s PC PWA implementation that caches assets to speed loading, boosts user retention by 9%, and outlines future enhancements such as offline support and push notifications.

OfflinePWAService Worker
0 likes · 12 min read
Progressive Web Apps (PWA) Overview, Service Worker Fundamentals, and iQiyi PC Implementation
Taobao Frontend Technology
Taobao Frontend Technology
Dec 3, 2019 · Frontend Development

Boost Mobile Web Performance with Rax PWA: Fast Loading, No White‑Screen, Seamless Offline

The article introduces Rax PWA, a solution built on Rax 1.x that enables lightweight configuration of Progressive Web Apps, detailing SPA routing, code splitting, App Shell, skeleton screens, snapshot rendering, service‑worker caching, SSR support, and manifest generation to dramatically improve mobile web performance and user experience.

App ShellPWARax
0 likes · 12 min read
Boost Mobile Web Performance with Rax PWA: Fast Loading, No White‑Screen, Seamless Offline
Seewo Tech Circle
Seewo Tech Circle
Jun 28, 2019 · Frontend Development

Building a Fast, Updatable PC Client with Electron for Classroom Interaction

This article details how a team of web developers chose Electron to create a cross‑platform PC client for the teaching tool "Classroom Optimization Master", describing the technology stack, successive architectural evolutions, performance improvements, and lessons learned about modular design and hot updates.

Desktop ApplicationElectronIPC
0 likes · 13 min read
Building a Fast, Updatable PC Client with Electron for Classroom Interaction
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Mar 6, 2019 · Frontend Development

Boost Your Web App with PWA: From Service Workers to First‑Load Optimization

This article explains what a Progressive Web App (PWA) is, how Service Workers enable caching of static, dynamic, and HTML resources, and provides practical techniques such as precaching, offline‑package replacement, update strategies, and a webpack plugin to streamline integration for faster first‑screen loads.

CachePWAService Worker
0 likes · 12 min read
Boost Your Web App with PWA: From Service Workers to First‑Load Optimization
JD Retail Technology
JD Retail Technology
May 24, 2018 · Frontend Development

Understanding PWA Caching: Principles, Performance Benefits, and Strategies

This article explains why traditional H5 pages perform poorly compared to native apps, introduces Progressive Web Apps (PWA) as a solution, details how service workers enable offline caching, presents real‑world performance comparisons, and reviews common cache strategies such as cache‑first, network‑first, stale‑while‑revalidate, cache‑only, and network‑only.

Cache StrategiesPWAService Worker
0 likes · 7 min read
Understanding PWA Caching: Principles, Performance Benefits, and Strategies
Hujiang Technology
Hujiang Technology
Dec 27, 2016 · Frontend Development

Combining AMP and Progressive Web Apps: Strategies and Implementation

This article explains how Progressive Web Apps (PWAs) and Accelerated Mobile Pages (AMP) can be combined, compares their strengths and limitations, and provides practical integration patterns such as AMP-as-PWA, AMP-to-PWA, and AMP-in-PWA, including service‑worker setup and shadow‑DOM techniques.

AMPPWAService Worker
0 likes · 9 min read
Combining AMP and Progressive Web Apps: Strategies and Implementation