Tagged articles
2421 articles
Page 8 of 25
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 8, 2024 · Frontend Development

Understanding and Using Hooks in Vue 3 Composition API

This article introduces Vue 3 Hooks, explains their relationship to the Composition API, compares them with mixins and class‑based patterns, provides best‑practice guidelines, and offers multiple TypeScript code examples for creating, using, and managing custom hooks to improve code reuse and maintainability.

Composition APIJavaScriptVue
0 likes · 17 min read
Understanding and Using Hooks in Vue 3 Composition API
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 7, 2024 · Frontend Development

Introducing Pictode: A Konva.js‑Based Graphical Editor Framework with Tutorials and Plugin Guide

This article presents Pictode, a Konva.js‑driven graphics editor framework, explains its core features, demonstrates how to set up a canvas, use drawing tools, selector and history plugins, and provides step‑by‑step code examples for integration with Vue or other front‑end projects.

CanvasJavaScriptKonva.js
0 likes · 14 min read
Introducing Pictode: A Konva.js‑Based Graphical Editor Framework with Tutorials and Plugin Guide
Open Source Tech Hub
Open Source Tech Hub
Jan 6, 2024 · Backend Development

Securely Implement Pusher Private Channels with PHP and JavaScript

This guide explains how to restrict access to Pusher channels using private channels, covering authentication flow, required server‑side PHP setup, client‑side JavaScript integration, and step‑by‑step code examples for publishing and receiving secure real‑time messages.

JavaScriptPHPPrivate Channels
0 likes · 5 min read
Securely Implement Pusher Private Channels with PHP and JavaScript
IT Services Circle
IT Services Circle
Jan 6, 2024 · Backend Development

Using exceljs for Excel Import and Export in Node.js and the Browser

This tutorial demonstrates how to install the exceljs package, read and traverse Excel workbooks in Node.js, generate styled Excel files, and perform the same operations in a browser environment, including triggering file downloads, providing a complete solution for Excel import/export in backend and frontend applications.

ExcelJSFile ImportJavaScript
0 likes · 9 min read
Using exceljs for Excel Import and Export in Node.js and the Browser
Sohu Tech Products
Sohu Tech Products
Jan 3, 2024 · Frontend Development

Mastering Conditional Rendering in React: 9 Essential Techniques

This article reviews the most common conditional rendering approaches in React—including if‑else, ternary operators, logical AND, nullish coalescing, switch statements, strategy patterns, ErrorBoundary, higher‑order components, and render props—explaining their usage, advantages, code examples, and best‑practice cautions.

Conditional RenderingJavaScriptReact
0 likes · 8 min read
Mastering Conditional Rendering in React: 9 Essential Techniques
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 31, 2023 · Frontend Development

Vue 3.4 Release: Faster Template Compiler, Refactored Reactivity, and New API Features

Vue 3.4 introduces a rewritten template compiler that doubles parsing speed, a refactored reactivity system with more precise effect triggering, stable defineModel macro, v‑bind shorthand, improved hydration error messages, and several deprecated features removed, while recommending dependency updates for a smooth upgrade.

JavaScriptReactivityTemplate Compiler
0 likes · 11 min read
Vue 3.4 Release: Faster Template Compiler, Refactored Reactivity, and New API Features
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 23, 2023 · Frontend Development

Implementing Cancellation and Progress Notification for JavaScript Promises

This article examines advanced JavaScript Promise techniques by presenting practical implementations for cancelling a pending promise and for notifying progress during asynchronous operations, complete with code examples, explanations of underlying concepts, and discussion of their relevance in interviews and real‑world development.

JavaScriptProgressPromise
0 likes · 10 min read
Implementing Cancellation and Progress Notification for JavaScript Promises
php Courses
php Courses
Dec 21, 2023 · Frontend Development

Implementing Image Lazy Loading in PHP: A Step‑by‑Step Guide

This article explains how to implement image lazy loading in PHP by extracting image URLs, generating placeholder tags with data-src attributes, monitoring scroll events via JavaScript, and applying CSS transitions, providing a step‑by‑step guide with complete code examples to improve page load performance.

JavaScriptPHPfrontend
0 likes · 5 min read
Implementing Image Lazy Loading in PHP: A Step‑by‑Step Guide
21CTO
21CTO
Dec 20, 2023 · Frontend Development

Deno 1.39 Brings Stable WebGPU Support and TypeScript 5.3 – What Developers Need to Know

Version 1.39 of Deno introduces experimental‑yet‑stable WebGPU via the –unstable-webgpu flag, adds a new coverage reporter with static HTML output, improves Node.js compatibility, and ships with TypeScript 5.3, while warning of upcoming breaking changes to decorator semantics in the next release.

DenoJavaScriptTypeScript
0 likes · 5 min read
Deno 1.39 Brings Stable WebGPU Support and TypeScript 5.3 – What Developers Need to Know
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
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 19, 2023 · Frontend Development

7 Advanced JavaScript async/await Techniques

This article explains seven advanced JavaScript async/await patterns—including higher‑order functions, concurrency control, recursive processing, asynchronous class initialization, method chaining, event‑loop integration, and streamlined error handling—to help developers write clearer, more maintainable asynchronous code.

Advanced TechniquesError HandlingJavaScript
0 likes · 15 min read
7 Advanced JavaScript async/await Techniques
Goodme Frontend Team
Goodme Frontend Team
Dec 13, 2023 · Frontend Development

Unlocking Concurrency, JS Quirks, Security Risks & Canvas Collisions: Frontend Insights

This roundup highlights the latest frontend tools and deep‑dive articles, covering StyleX, Astro 4.0, Vitest 1.0, VS Code 1.85, lock mechanisms for single‑threaded concurrency, bizarre JavaScript behaviors, target="_blank" security flaws, plugin system designs, designer‑developer workflows, and canvas collision detection techniques.

CanvasJavaScriptfrontend
0 likes · 5 min read
Unlocking Concurrency, JS Quirks, Security Risks & Canvas Collisions: Frontend Insights
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 12, 2023 · Frontend Development

Deep Dive into Vite's Dependency Pre‑Bundling Process

This article explains why Vite is faster than bundlers like Webpack, introduces the concept of dependency pre‑bundling, walks through its implementation using esbuild plugins, and shows how to build a simplified custom Vite server that scans, resolves, and pre‑bundles third‑party modules.

JavaScriptPre‑bundlingVite
0 likes · 35 min read
Deep Dive into Vite's Dependency Pre‑Bundling Process
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 10, 2023 · Frontend Development

Introduction to Web Components: History, Concepts, Custom Elements, Shadow DOM, Template and Slot

This article provides a comprehensive overview of Web Components, covering their development timeline, core concepts such as Custom Elements, Shadow DOM, templates and slots, practical code examples, lifecycle callbacks, debugging tools, and real‑world usage scenarios for modern frontend development.

HTML TemplatesJavaScriptShadow DOM
0 likes · 12 min read
Introduction to Web Components: History, Concepts, Custom Elements, Shadow DOM, Template and Slot
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 9, 2023 · Frontend Development

Create a Rolex GMT‑MASTER Style Watch Using HTML Canvas

This tutorial walks a front‑end developer through building a fully functional Rolex‑inspired GMT‑MASTER watch with HTML, CSS and JavaScript by dividing the watch into dial, bezel and hand modules, initializing three canvas elements, defining color variables, and implementing drawing functions for the bezel, dial, hour, GMT, minute and second hands.

CSSCanvas DrawingHTML Canvas
0 likes · 21 min read
Create a Rolex GMT‑MASTER Style Watch Using HTML Canvas
Programmer DD
Programmer DD
Dec 7, 2023 · Frontend Development

Why JavaScript Is Essential for Modern Web Development: A Beginner’s Guide

This article introduces JavaScript’s origins, core characteristics, and versatile roles—from front‑end scripting in browsers to server‑side execution with Node.js—while explaining its event‑driven model, variable declarations, DOM interaction, and asynchronous programming features for beginners.

JavaScriptWeb Developmentevent loop
0 likes · 6 min read
Why JavaScript Is Essential for Modern Web Development: A Beginner’s Guide
Sohu Tech Products
Sohu Tech Products
Dec 6, 2023 · Frontend Development

The Nuances of Base64 Encoding Strings in JavaScript

The article explains that JavaScript’s native btoa() and atob() functions only handle ASCII, so to correctly base64‑encode Unicode strings you must convert them with TextEncoder to UTF‑8 bytes, use Uint8Array, and decode with TextDecoder, while checking for malformed surrogate pairs via isWellFormed or encodeURIComponent to avoid silent data loss.

Base64JavaScriptTextDecoder
0 likes · 14 min read
The Nuances of Base64 Encoding Strings in JavaScript
Sohu Tech Products
Sohu Tech Products
Dec 6, 2023 · Fundamentals

Understanding JavaScript Constructors, Prototypes, Classes, and Inheritance

The article thoroughly explains JavaScript constructors, prototype chains, the this binding, and ES6 class syntax, showing how functions become constructors with new, how prototypes link objects, custom new/instanceof implementations, and various inheritance patterns—including parasitic combination inheritance realized by class extends and super.

ClassConstructorInheritance
0 likes · 22 min read
Understanding JavaScript Constructors, Prototypes, Classes, and Inheritance
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 2, 2023 · Frontend Development

Vue Quick Start Guide for Backend Developers

This article provides backend developers with a concise Vue quick‑start guide, covering core features such as component‑based architecture, two‑way data binding, and virtual DOM, and demonstrates practical setup via CDN or Vue CLI, along with detailed examples of data handling, computed properties, watchers, methods, and common directives.

JavaScriptTutorialVue
0 likes · 12 min read
Vue Quick Start Guide for Backend Developers
JavaScript
JavaScript
Nov 28, 2023 · Frontend Development

How to Ensure HTTP Requests Complete When Users Leave a Page

This article explains why browsers cancel pending requests during navigation, the risks of lost data, and demonstrates reliable solutions using JavaScript—first by awaiting fetch, then leveraging the fetch keepalive option—to guarantee logs reach the server without delaying page loads.

HTTPJavaScriptKeepalive
0 likes · 3 min read
How to Ensure HTTP Requests Complete When Users Leave a Page
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 28, 2023 · Frontend Development

How to Create a Left‑Looping Scrolling Text Using HTML, CSS, and JavaScript

This article explains four different techniques—including pure JavaScript frame updates, setInterval with CSS transitions, CSS keyframe animation, and a text‑shadow trick—to achieve a continuously left‑scrolling text effect, compares their performance and complexity, and provides complete code samples for each method.

CSSHTMLJavaScript
0 likes · 6 min read
How to Create a Left‑Looping Scrolling Text Using HTML, CSS, and JavaScript
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 27, 2023 · Frontend Development

From jQuery to Virtual DOM: Evolution, Advantages, and the Rise of No‑Virtual‑DOM Frameworks

From jQuery’s imperative DOM hacks to React’s virtual‑DOM abstraction and now to compile‑time, no‑virtual‑DOM frameworks like Svelte and Solid, the front‑end has shifted toward declarative UI, fine‑grained reactivity, and performance‑focused optimizations, while virtual‑DOM remains widely used but increasingly challenged.

Front-endJavaScriptSolidJS
0 likes · 21 min read
From jQuery to Virtual DOM: Evolution, Advantages, and the Rise of No‑Virtual‑DOM Frameworks
Top Architect
Top Architect
Nov 27, 2023 · Frontend Development

Comprehensive Survey and Implementation Guide for File Preview Solutions

This article presents an extensive survey of file preview options—including commercial services, front‑end libraries, and server‑side converters—detailing their advantages, limitations, implementation steps, and code examples for handling DOCX, PPTX, XLSX, and PDF formats in web applications.

JavaScriptdocx-previewfile preview
0 likes · 23 min read
Comprehensive Survey and Implementation Guide for File Preview Solutions
php Courses
php Courses
Nov 27, 2023 · Frontend Development

Implementing Multi‑Window 3D Synchronization with three.js

This article explains how to create a pure‑frontend “quantum entanglement” effect by synchronizing multiple browser windows using three.js, detailing the index.html setup, the main.js logic for scene and window management, and the WindowManager class that tracks window shapes via localStorage.

JavaScriptThree.jsWebGL
0 likes · 13 min read
Implementing Multi‑Window 3D Synchronization with three.js
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 24, 2023 · Frontend Development

Understanding JavaScript Event Loop, Microtasks and Macrotasks

This article explains JavaScript’s single‑threaded nature, the event loop mechanism, and the distinction between microtasks and macrotasks, illustrating their execution order with detailed code examples and step‑by‑step analysis to help developers grasp asynchronous behavior in front‑end development.

JavaScriptevent loopfrontend development
0 likes · 7 min read
Understanding JavaScript Event Loop, Microtasks and Macrotasks
360 Smart Cloud
360 Smart Cloud
Nov 21, 2023 · Frontend Development

WebRTC MediaStream and RTCPeerConnection API Overview and Usage

This article provides a comprehensive overview of WebRTC's MediaStream and RTCPeerConnection APIs, explaining core concepts such as tracks, sources, sinks, device enumeration, media constraints, bitrate and resolution settings, compatibility considerations, screen sharing, content hints, and the step‑by‑step workflow for establishing a peer‑to‑peer connection in the browser.

Browser APIsJavaScriptMediaStream
0 likes · 15 min read
WebRTC MediaStream and RTCPeerConnection API Overview and Usage
Goodme Frontend Team
Goodme Frontend Team
Nov 19, 2023 · Frontend Development

How to Securely Add Page and Image Watermarks with Canvas and CSS

This article explains how to protect confidential business documents by implementing page‑level watermarks using canvas and pseudo‑elements, and how to add robust watermarks to images via OSS parameters or client‑side canvas processing, while preventing removal through MutationObserver.

CanvasJavaScriptOSS
0 likes · 16 min read
How to Securely Add Page and Image Watermarks with Canvas and CSS
New Oriental Technology
New Oriental Technology
Nov 17, 2023 · Frontend Development

axios introduction

Axios is a popular HTTP client for JavaScript that simplifies making HTTP requests, supports promise-based APIs, and offers features like request/response interceptors and automatic JSON data transformation.

HTTP clientJavaScriptPromise
0 likes · 9 min read
axios introduction
Yunxuetang Frontend Team
Yunxuetang Frontend Team
Nov 10, 2023 · Frontend Development

Top Frontend Innovations: Memory Optimization, File Streaming, and New JS Features

This article curates recent frontend breakthroughs—including Electron memory tuning, printer integration, efficient file streaming, Chrome 117's SHA‑1 deprecation, native JavaScript array grouping, and continuous user‑experience improvement—offering practical insights for modern web developers.

JavaScriptUser experienceWeb Development
0 likes · 2 min read
Top Frontend Innovations: Memory Optimization, File Streaming, and New JS Features
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 9, 2023 · Frontend Development

Elegant Handling of async/await Exceptions in JavaScript

This article examines why try‑catch is often overused for async/await errors, outlines common scenarios that cause request failures, and presents two cleaner alternatives—using Promise .catch with conditional logic and the lightweight await‑to‑js utility—to simplify error handling and reduce code redundancy.

AsyncError HandlingJavaScript
0 likes · 7 min read
Elegant Handling of async/await Exceptions in JavaScript
DeWu Technology
DeWu Technology
Nov 8, 2023 · Frontend Development

Mastering Front‑End Monitoring: From Performance to Error Alerts

This article provides a comprehensive guide to front‑end monitoring, covering performance metrics, exception alerts, daily inspections, instrumentation methods, data collection, log storage, and practical code examples for building a robust monitoring system that improves stability, user experience, and business insight.

InstrumentationJavaScriptWeb Analytics
0 likes · 20 min read
Mastering Front‑End Monitoring: From Performance to Error Alerts
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 5, 2023 · Frontend Development

Practical JavaScript Techniques: Maps, Sets, Array.from, Destructuring, API Integration, and Tree Conversion

This article shares practical JavaScript snippets for managing dictionaries with Map, deduplicating arrays using Set, constructing data with Array.from, applying destructuring patterns, merging API modules in Vue projects, and converting flat data into tree structures, providing clear examples and reusable code.

Array.fromDestructuringJavaScript
0 likes · 7 min read
Practical JavaScript Techniques: Maps, Sets, Array.from, Destructuring, API Integration, and Tree Conversion
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 5, 2023 · Frontend Development

Comprehensive Guide to JavaScript Object Methods and Their Usage

This article provides an in‑depth overview of JavaScript's Object methods—including defineProperty, defineProperties, assign, create, freeze, seal, preventExtensions, fromEntries, hasOwnProperty, hasOwn, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, setPrototypeOf, isPrototypeOf, getOwnPropertyDescriptor, getOwnPropertyDescriptors, propertyIsEnumerable, keys, values, entries, is, and groupBy—explaining their purpose, parameters, behavior, and offering practical code examples for each.

JavaScriptWeb Developmentmethods
0 likes · 24 min read
Comprehensive Guide to JavaScript Object Methods and Their Usage
Sohu Tech Products
Sohu Tech Products
Nov 1, 2023 · Frontend Development

ESLint vs. Prettier: History, Conflict, and the Deprecation of Formatting Rules

The article traces ESLint’s evolution from a JSLint‑style checker to the dominant JavaScript linter, explains its long‑standing clash with the opinionated formatter Prettier over code‑style rules, and details the team’s decision in v8.53.0 to deprecate built‑in formatting rules in favor of external style plugins and market‑driven style guides.

Code FormattingESLintJavaScript
0 likes · 10 min read
ESLint vs. Prettier: History, Conflict, and the Deprecation of Formatting Rules
HomeTech
HomeTech
Nov 1, 2023 · Frontend Development

Understanding and Optimizing Cumulative Layout Shift (CLS) in Web Performance

This article explains the background, definition, calculation methods, measurement techniques, and practical optimization strategies for Cumulative Layout Shift (CLS), a key web‑performance metric, and provides JavaScript code examples for tracking and reporting CLS values.

CLSJavaScriptWeb Performance
0 likes · 16 min read
Understanding and Optimizing Cumulative Layout Shift (CLS) in Web Performance
Ximalaya Technology Team
Ximalaya Technology Team
Oct 31, 2023 · Frontend Development

What Is WebAssembly? Advantages, Front‑End Usage, and Development Guide

WebAssembly (Wasm) is a fast, binary bytecode format that lets browsers execute near‑native code written in languages like C, C++ or Rust, offering superior performance for CPU‑intensive tasks such as games and data processing, and can be integrated into front‑end projects via fetch, instantiateStreaming, and toolchains like Emscripten or wasm‑pack.

C++JavaScriptRust
0 likes · 10 min read
What Is WebAssembly? Advantages, Front‑End Usage, and Development Guide
Sohu Tech Products
Sohu Tech Products
Oct 25, 2023 · Frontend Development

Using Vite with Remix: Installation, Configuration, and Feature Guide

This guide explains how to add the experimental Vite bundler to a Remix project—installing Vite, creating a vite.config.ts with the Remix plugin, configuring TypeScript, path aliases, CSS imports, Tailwind, vanilla‑extract, MDX, and noting differences such as LiveReload placement, Fast Refresh constraints, and current feature support across environments.

ConfigurationJavaScriptMDX
0 likes · 16 min read
Using Vite with Remix: Installation, Configuration, and Feature Guide
ByteFE
ByteFE
Oct 23, 2023 · Frontend Development

Master High‑Performance Data Tables with VTable: A Quick‑Start Guide

This guide introduces VTable, an open‑source high‑performance table component built on VRender, covering installation via npm or CDN, basic usage, table types, cell rendering options, interaction features, theming, and performance characteristics for modern web applications.

Data TableJavaScriptUI Component
0 likes · 9 min read
Master High‑Performance Data Tables with VTable: A Quick‑Start Guide
Sohu Tech Products
Sohu Tech Products
Oct 18, 2023 · Frontend Development

How to Build a Safari QR‑Code Extension from Scratch

This step‑by‑step guide shows how to create a Safari web extension that generates a QR code for the current page, covering project setup in Xcode, manifest configuration, UI design, JavaScript communication, and optional offline QR generation.

JavaScriptQR codeSafari Extension
0 likes · 9 min read
How to Build a Safari QR‑Code Extension from Scratch
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 15, 2023 · Frontend Development

Responsive Waterfall Flow Layout Implementation in React

This article explains how to build a responsive waterfall (masonry) layout in React, covering the underlying principle of absolute positioning, dynamic column calculation, item placement based on column heights, lazy image loading, and provides the complete TypeScript component and CSS code.

CSSJavaScriptResponsive Design
0 likes · 13 min read
Responsive Waterfall Flow Layout Implementation in React
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2023 · Frontend Development

Understanding Vue's Diff Algorithm: A Step‑by‑Step Guide

This article explains Vue's diff algorithm in detail, covering prerequisite concepts about VNode, left‑ and right‑side comparisons, handling arrays of different lengths, and the complete implementation with code examples to help developers grasp how Vue efficiently updates the DOM.

Diff AlgorithmJavaScriptVue
0 likes · 11 min read
Understanding Vue's Diff Algorithm: A Step‑by‑Step Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 12, 2023 · Frontend Development

Implementing Resizable Elements with Vue Directives (v‑resize)

This article explains how to create a Vue directive for element resizing, covering basic right‑side resizing, handling trigger zones, enforcing minimum dimensions, adding left/right multi‑direction support, and providing complete JavaScript and TypeScript implementations with usage examples and future enhancements.

DirectiveJavaScriptResize
0 likes · 16 min read
Implementing Resizable Elements with Vue Directives (v‑resize)
HomeTech
HomeTech
Oct 11, 2023 · Frontend Development

Implementing a Sticky Tabs Component with Custom Scroll Behavior in React

This article explains how to build a customizable Tabs component with a sticky header, click‑to‑scroll navigation, and collapsible content sections using React, CSS position:sticky, IntersectionObserver, and JavaScript, providing complete code examples and compatibility notes for modern web and mobile applications.

CSSIntersectionObserverJavaScript
0 likes · 10 min read
Implementing a Sticky Tabs Component with Custom Scroll Behavior in React
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 10, 2023 · Frontend Development

Deep Dive into LeaferJS: Architecture, Rendering Performance, Update Mechanism, and Event Picking

This article analyses the LeaferJS canvas rendering engine, covering its lightweight node creation, core architecture, rendering pipeline, partial‑render optimization, and event‑picking mechanism, while providing code examples and performance insights for front‑end developers.

Canvas RenderingJavaScriptLeaferJS
0 likes · 14 min read
Deep Dive into LeaferJS: Architecture, Rendering Performance, Update Mechanism, and Event Picking
HelloTech
HelloTech
Oct 9, 2023 · Frontend Development

Vue Expand/Collapse Animation for FAQ Section

The article shows how to create a smooth FAQ expand‑collapse effect in Vue by storing each item’s visibility in a show flag, wrapping the answer in a transition component, and using JavaScript hooks to set explicit heights and overflow while rotating the arrow icon for visual feedback.

CSS TransitionExpand CollapseFAQ
0 likes · 10 min read
Vue Expand/Collapse Animation for FAQ Section
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 8, 2023 · Frontend Development

Using Web Workers to Compile SCSS in a Frontend Application

This article explains how to off‑load SCSS‑to‑CSS compilation to a Web Worker in a React‑based frontend, providing code examples for the worker script, the main thread integration, and demonstrating the performance benefits of keeping the UI responsive during heavy processing.

Code CompilationJavaScriptSCSS
0 likes · 7 min read
Using Web Workers to Compile SCSS in a Frontend Application
HelloTech
HelloTech
Sep 27, 2023 · Frontend Development

Understanding JavaScript Web Workers and Shared Workers: Concepts, Usage, and Debugging

JavaScript’s single‑threaded model can freeze the UI during heavy calculations, but Web Workers—dedicated or shared—run code in independent threads, communicate via postMessage, offer configurable options, follow a clear initialization‑active‑termination lifecycle, and can be debugged through Chrome’s inspection tools, enabling responsive, asynchronous processing.

JavaScriptShared WorkerWeb Worker
0 likes · 17 min read
Understanding JavaScript Web Workers and Shared Workers: Concepts, Usage, and Debugging
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 27, 2023 · Frontend Development

Implementing Genshin Impact Character Switch Effect with Vue: Horizontal Scrolling, Background Animation, and Mobile Touch Handling

This article walks through recreating the Genshin Impact character switch UI using Vue, detailing the horizontal avatar carousel, background image scaling animations, and touch‑based swipe handling for mobile, complete with code snippets and edge‑case logic.

CSSJavaScriptResponsive Design
0 likes · 12 min read
Implementing Genshin Impact Character Switch Effect with Vue: Horizontal Scrolling, Background Animation, and Mobile Touch Handling
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 26, 2023 · Frontend Development

A Comprehensive Guide to Code Modification (Codemod) Tools and AST Transformations

This article explains the concept of codemod, outlines typical migration scenarios, details a step‑by‑step AST‑based workflow, and compares popular JavaScript code‑mod libraries such as Recast, jscodeshift, gogocode, and ast‑grep, helping developers choose the right tool for automated code upgrades.

ASTGoGoCodeJavaScript
0 likes · 13 min read
A Comprehensive Guide to Code Modification (Codemod) Tools and AST Transformations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 26, 2023 · Fundamentals

Understanding the Strategy Pattern in JavaScript

This article explains the Strategy design pattern, demonstrates its implementation in JavaScript through three code versions, discusses the drawbacks of naïve if‑else approaches, and outlines the pattern's advantages and disadvantages for creating flexible, maintainable code.

Design PatternsJavaScriptSoftware Architecture
0 likes · 6 min read
Understanding the Strategy Pattern in JavaScript
IT Services Circle
IT Services Circle
Sep 25, 2023 · Frontend Development

Understanding and Using Regular Expressions in JavaScript

This article provides a comprehensive, beginner‑friendly guide to JavaScript regular expressions, covering core concepts, syntax, creation methods, modifiers, character classes, quantifiers, special characters, capture groups, look‑ahead/look‑behind assertions, common string methods, practical use cases such as validation, search‑replace, data extraction, cleaning, and a list of useful online regex tools.

JavaScriptString Manipulationregular expressions
0 likes · 27 min read
Understanding and Using Regular Expressions in JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 25, 2023 · Frontend Development

Useful Vue.js Libraries to Accelerate Frontend Development

This article introduces several popular open‑source Vue.js libraries—including vueuse, vue‑js‑modal, vue‑wait, good‑table, vue‑notification, tree‑select, and egjs‑infinite‑grid—detailing their features, star counts, usage examples, and GitHub links to help developers quickly enhance their Vue projects.

JavaScriptVuecomponents
0 likes · 5 min read
Useful Vue.js Libraries to Accelerate Frontend Development
php Courses
php Courses
Sep 22, 2023 · Frontend Development

Implementing Data Visualization with PHP and Google Charts

This tutorial explains how to use PHP to fetch JSON data and integrate Google Charts, providing step‑by‑step code examples for preparing the environment, retrieving data, generating a pie chart with JavaScript, and displaying it within an HTML page.

Data visualizationGoogle ChartsJavaScript
0 likes · 6 min read
Implementing Data Visualization with PHP and Google Charts
php Courses
php Courses
Sep 22, 2023 · Frontend Development

19 Common JavaScript Performance Pitfalls and How to Avoid Them

This article identifies nineteen common performance pitfalls in JavaScript and Node.js applications—ranging from improper variable scope and inefficient DOM manipulation to blocking I/O, unoptimized loops, and excessive dependencies—providing illustrative code examples and actionable solutions to improve speed and responsiveness.

JavaScriptNode.jsbest practices
0 likes · 16 min read
19 Common JavaScript Performance Pitfalls and How to Avoid Them
21CTO
21CTO
Sep 12, 2023 · Frontend Development

Why Turbo’s Creator Dropped TypeScript and What It Means for Front‑End Dev

The article explains why Ruby on Rails creator David Heinemeier Hansson removed TypeScript from Turbo 8, outlines community backlash, and discusses the broader implications for JavaScript‑centric front‑end development and the Hotwire ecosystem.

HotwireJavaScriptRuby on Rails
0 likes · 5 min read
Why Turbo’s Creator Dropped TypeScript and What It Means for Front‑End Dev
php Courses
php Courses
Sep 10, 2023 · Frontend Development

Implementing Dynamic Add/Remove Form Items with Vue.js

This article guides developers through building a Vue.js component that supports dynamically adding, removing, and submitting multiple form entries, complete with step-by-step explanations and full code examples for handling form data on the client side.

Dynamic FormsJavaScriptVue.js
0 likes · 5 min read
Implementing Dynamic Add/Remove Form Items with Vue.js
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 8, 2023 · Frontend Development

Advanced JavaScript Methods: getBoundingClientRect, IntersectionObserver, createNodeIterator, getComputedStyle, requestAnimationFrame

This article introduces five lesser‑known but powerful JavaScript browser APIs—getBoundingClientRect, IntersectionObserver, createNodeIterator, getComputedStyle, and requestAnimationFrame—explaining their properties, typical application scenarios such as drag‑and‑drop, lazy loading, DOM traversal, style inspection, and animation timing, and providing ready‑to‑use code examples.

Browser APIsDOMJavaScript
0 likes · 11 min read
Advanced JavaScript Methods: getBoundingClientRect, IntersectionObserver, createNodeIterator, getComputedStyle, requestAnimationFrame
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 8, 2023 · Frontend Development

Why Front‑End Projects Should Embrace TypeScript

The article argues that, despite some developers claiming TypeScript reduces productivity, its advantages—such as catching type errors early, preventing runtime ReferenceErrors, and easing maintenance—outweigh the drawbacks, and market trends show TS adoption will continue to grow in front‑end development.

JavaScriptTypeScriptcareer
0 likes · 6 min read
Why Front‑End Projects Should Embrace TypeScript
Sohu Tech Products
Sohu Tech Products
Sep 6, 2023 · Frontend Development

Understanding Pre‑rendering and Speculation Rules in Modern Web Development

The article explains modern pre‑rendering techniques—historical prefetched and prerendered links, Chrome’s new predictive full‑page rendering, and the Speculation Rules API that lets developers declaratively or dynamically specify prefetch and prerender JSON rules, while noting same‑origin limits, debugging tools, and performance benefits for Core Web Vitals.

ChromeHTMLJavaScript
0 likes · 11 min read
Understanding Pre‑rendering and Speculation Rules in Modern Web Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 4, 2023 · Frontend Development

Controlling Concurrent Requests in JavaScript with Promise.all, Promise.race, and async/await

This article explains how to manage multiple asynchronous HTTP requests in modern web development by using Promise.all, Promise.race, async/await, manual counters, and third‑party libraries, providing complete code examples and best‑practice recommendations for limiting concurrency and improving application performance.

JavaScriptPromiseWeb Development
0 likes · 8 min read
Controlling Concurrent Requests in JavaScript with Promise.all, Promise.race, and async/await
Programmer DD
Programmer DD
Sep 2, 2023 · Frontend Development

Create Interactive Flowcharts Fast with LogicFlow – A Quick Start Guide

This article introduces LogicFlow, an open‑source JavaScript framework for building interactive flowcharts, ER diagrams, and BPMN processes, and provides a concise two‑step quick‑start guide—including CDN and npm installation and a complete example code—to help developers integrate flexible diagramming into their applications.

FlowchartJavaScriptLogicFlow
0 likes · 5 min read
Create Interactive Flowcharts Fast with LogicFlow – A Quick Start Guide
Weimob Technology Center
Weimob Technology Center
Sep 1, 2023 · Frontend Development

How to Auto-Extract Theme Colors from Images with JavaScript: Median‑Cut & Octree Explained

This article explains how to automatically extract a picture’s dominant theme colors in the browser using JavaScript, covering the problem background, analysis of common methods, advantages of client‑side processing, and step‑by‑step implementation of median‑cut and octree algorithms with code examples.

Image ProcessingJavaScriptcolor extraction
0 likes · 19 min read
How to Auto-Extract Theme Colors from Images with JavaScript: Median‑Cut & Octree Explained
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 31, 2023 · Fundamentals

JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More

This article introduces JavaScript design patterns—covering creational, structural, and behavioral categories—and provides clear explanations and complete code examples for patterns such as Factory Method, Abstract Factory, Singleton, Builder, Prototype, Adapter, Decorator, Proxy, Facade, Bridge, Composite, Flyweight, Strategy, Template Method, Observer, Iterator, Chain of Responsibility, Command, Memento, State, Visitor, Mediator and Interpreter, helping developers write cleaner, more maintainable code.

AdapterBuilderDecorator
0 likes · 35 min read
JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More
JD Retail Technology
JD Retail Technology
Aug 30, 2023 · Frontend Development

Building a ChatGPT-Powered Chrome Extension for Word Translation

This tutorial walks through creating a Chrome extension that uses the ChatGPT API to translate selected text, covering setup with OpenAI's quickstart, key code snippets for prompts, content‑script and background service worker, Vite plugin usage, deployment on Vercel, and runtime considerations.

APIChatGPTChrome Extension
0 likes · 5 min read
Building a ChatGPT-Powered Chrome Extension for Word Translation
KooFE Frontend Team
KooFE Frontend Team
Aug 28, 2023 · Frontend Development

Server‑Driven UI: Transforming Frontend Development with Real‑World Benefits

Server‑driven UI, a technique that delivers UI structures via APIs from the server, enables faster iteration, dynamic personalization, and backend‑frontend collaboration, while presenting challenges like app‑store compliance and offline support; the article explains its principles, advantages, implementation steps, and showcases Instagram’s real‑world usage.

APIJavaScriptdynamic rendering
0 likes · 15 min read
Server‑Driven UI: Transforming Frontend Development with Real‑World Benefits
MaGe Linux Operations
MaGe Linux Operations
Aug 28, 2023 · Frontend Development

How to Block Debugger and Prevent Frontend Code Inspection

This article explains why developers forbid debugging in web pages, demonstrates how repeated debugger statements can hide API calls, and provides multiple counter‑measures—including breakpoint deactivation, script ignore lists, Function‑based rewrites, and advanced obfuscated code—to protect frontend JavaScript from inspection.

Anti-debuggingJavaScriptcode obfuscation
0 likes · 5 min read
How to Block Debugger and Prevent Frontend Code Inspection
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 26, 2023 · Frontend Development

Responsive Full‑Page Scroll Implementation with Vue 3

This article explains how to create a responsive full‑screen scrolling effect using Vue 3, detailing the concept, requirements, underlying principles, and providing complete HTML, JavaScript, and CSS code to handle mouse wheel, touch events, dynamic height calculation, and indicator navigation.

CSSFullPageScrollHTML
0 likes · 12 min read
Responsive Full‑Page Scroll Implementation with Vue 3
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 25, 2023 · Frontend Development

Implementing createPromise and createRetryPromise Utility Functions in JavaScript

This article explains the design and step‑by‑step implementation of two JavaScript utility functions—createPromise for exposing a Promise’s resolve/reject handlers and createRetryPromise for adding configurable retry logic—complete with TypeScript typings, detailed code walkthroughs, and a practical network‑request example.

AsyncJavaScriptPromise
0 likes · 11 min read
Implementing createPromise and createRetryPromise Utility Functions in JavaScript
Ximalaya Technology Team
Ximalaya Technology Team
Aug 24, 2023 · Frontend Development

Using Redux Toolkit for State Management in React and React Native

This article demonstrates how to replace classic Redux boilerplate with Redux Toolkit in a React Todo List app by creating a slice, configuring the store, providing it via Provider, and using useSelector and useDispatch, highlighting the simplified setup and clearer state management for both React and React Native.

JavaScriptReactRedux Toolkit
0 likes · 10 min read
Using Redux Toolkit for State Management in React and React Native