Tagged articles

JavaScript

2446 articles · Page 8 of 25
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 17, 2024 · Frontend Development

Performance Optimization and Benchmarking of the limu Immutable Data Library

This article details the design, three major benefits, optimization steps, and extensive benchmark results of the limu immutable data library, demonstrating how meta handling, prototype manipulation, and Map‑based storage dramatically improve performance compared to other libraries such as immer, mutative, and structura.

BenchmarkImmutableJavaScript
0 likes · 15 min read
Performance Optimization and Benchmarking of the limu Immutable Data Library
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 16, 2024 · Frontend Development

Performance Comparison of Vue3 Proxy vs Object.defineProperty for Reactive Systems

This article benchmarks Vue3's Proxy-based reactivity against the traditional Object.defineProperty approach across initialization, read, write, multiple object creation, and nested‑object scenarios, revealing where each technique excels and why Vue3 ultimately prefers Proxy despite nuanced performance trade‑offs.

FrontendJavaScriptObject.defineProperty
0 likes · 10 min read
Performance Comparison of Vue3 Proxy vs Object.defineProperty for Reactive Systems
21CTO
21CTO
Feb 15, 2024 · Frontend Development

Why Tauri Could Replace Electron for Faster, Smaller Desktop Apps

This article compares Electron and the newer Tauri framework, highlighting Electron's large binary size and Tauri's Rust‑backed, lightweight approach that lets web developers build native desktop applications with familiar JavaScript, HTML, and CSS.

ElectronFrontendJavaScript
0 likes · 7 min read
Why Tauri Could Replace Electron for Faster, Smaller Desktop Apps
21CTO
21CTO
Feb 11, 2024 · Frontend Development

jQuery 4.0 Beta: Dropping IE Support and Major Changes You Need to Know

jQuery’s latest 4.0 beta removes support for IE 10 and older browsers, introduces ES module builds with Rollup, updates FormData handling, and changes event order, while the team signals a full IE drop in the upcoming 5.0, sparking debate over jQuery’s future relevance.

JavaScriptbrowser compatibilityfrontend development
0 likes · 5 min read
jQuery 4.0 Beta: Dropping IE Support and Major Changes You Need to Know
php Courses
php Courses
Feb 7, 2024 · Backend Development

Building a Simple File Sharing Application with PHP and JavaScript

This guide walks you through creating a simple, secure file sharing web application using PHP and JavaScript, covering environment setup, user authentication, file upload handling, display of uploaded files, deletion, and UI styling with CSS and dynamic enhancements via JavaScript.

JavaScriptPHPWeb Development
0 likes · 5 min read
Building a Simple File Sharing Application with PHP and JavaScript
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.

InterceptionJavaScriptSandbox
0 likes · 16 min read
Advanced Interception Techniques in Front-End Development: API Overriding, Service Workers, and Sandbox Strategies
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Feb 5, 2024 · Fundamentals

How V8 Implements JavaScript Closures

V8 creates JavaScript closures by lazily parsing functions, using a pre‑parser to detect and record outer‑variable references, copying captured values to the heap, then generating bytecode that builds a function context and closure, ensuring efficient execution while avoiding memory‑leak pitfalls.

JavaScriptLazy ParsingV8
0 likes · 16 min read
How V8 Implements JavaScript Closures
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 5, 2024 · Frontend Development

Lesser‑Known but Useful ES6 Features and Techniques

This article introduces several relatively obscure yet practical ES6 features—including Object.entries/Object.fromEntries, Symbol, WeakMap/WeakSet, Promise.allSettled, BigInt, Array.of/Array.from, and the .at and flat methods—explaining their purpose and providing code examples for each.

ArrayBIGINTJavaScript
0 likes · 8 min read
Lesser‑Known but Useful ES6 Features and Techniques
Open Source Tech Hub
Open Source Tech Hub
Feb 4, 2024 · Backend Development

How to Build a Secure SQL Query Tool for Private Deployments

This article explains why a SQL query tool is essential for on‑premise systems, describes the challenges of remote access and data safety, and provides a step‑by‑step implementation covering frontend encryption, backend whitelist checks, decryption, and query execution with code examples.

Backend DevelopmentEncryptionJavaScript
0 likes · 8 min read
How to Build a Secure SQL Query Tool for Private Deployments
Test Development Learning Exchange
Test Development Learning Exchange
Feb 2, 2024 · Frontend Development

Playwright Overview: Features, Installation, Basic Concepts, and Sample Tests

This article introduces Playwright, a powerful cross‑browser automation tool, outlines its key features and advantages, provides step‑by‑step installation instructions for Python, explains core concepts, demonstrates locating invisible elements, and offers practical code examples for common web operations and testing best practices.

JavaScriptPlaywrightPython
0 likes · 7 min read
Playwright Overview: Features, Installation, Basic Concepts, and Sample Tests
ITPUB
ITPUB
Feb 1, 2024 · Databases

Why MySQL Now Lets You Write Stored Procedures in JavaScript

Oracle announced preview support for JavaScript‑based stored procedures in MySQL, showing how to write, call, and debug them using GraalVM, while industry reactions highlight both excitement and concerns about mixing languages in database logic.

DatabaseGraalVMJavaScript
0 likes · 4 min read
Why MySQL Now Lets You Write Stored Procedures in JavaScript
Sohu Tech Products
Sohu Tech Products
Jan 24, 2024 · Frontend Development

Five React Component Design Patterns: Compound, Controlled, Custom Hooks, Props Getters, and State Reducer

The article reviews five React component design patterns—Compound, Controlled, Custom Hooks, Props Getters, and State Reducer—explaining how each improves reusability, API simplicity, and state management while weighing their advantages, disadvantages, and ideal use‑cases for scalable, maintainable UI development.

Design PatternsHooksJavaScript
0 likes · 18 min read
Five React Component Design Patterns: Compound, Controlled, Custom Hooks, Props Getters, and State Reducer
Open Source Tech Hub
Open Source Tech Hub
Jan 20, 2024 · Frontend Development

What’s New in Layui 2.9.4? Key Features, Table Updates, and Bug Fixes

The Layui 2.9.4 release (January 18, 2024) adds a new table.updateRow method, fixes scroll‑position and Chrome DevTools crashes, improves the laydate picker on iOS Safari and Android Firefox, and introduces a slider tipsAlways option, all while preserving its lightweight, native‑HTML approach.

JavaScriptLayuiTable
0 likes · 2 min read
What’s New in Layui 2.9.4? Key Features, Table Updates, and Bug Fixes
MoonWebTeam
MoonWebTeam
Jan 19, 2024 · Frontend Development

What Shaped Front-End Development in 2023? A Comprehensive Review

This article reviews the major developments in front‑end technology during 2023, covering the rise of large‑model AI applications, updates to JavaScript, TypeScript, CSS, the evolution of major frameworks like React, Vue, Svelte and Angular, the emergence of new tools such as Qwik, Htmx, Bun, Rust‑based build tools, low‑code engines, cross‑platform advances with HarmonyOS, and provides outlooks for 2024.

2023 reviewAIJavaScript
0 likes · 52 min read
What Shaped Front-End Development in 2023? A Comprehensive Review
21CTO
21CTO
Jan 15, 2024 · Databases

How Oracle’s MySQL 8.2 Preview Brings JavaScript Stored Procedures

Oracle’s MySQL 8.2 preview introduces JavaScript stored procedures powered by GraalVM, allowing developers to write JavaScript or Java code inside the database, but the feature remains a technical preview with performance benefits, debugging support, and cautions about production use and global variable behavior.

Database DevelopmentGraalVMJavaScript
0 likes · 4 min read
How Oracle’s MySQL 8.2 Preview Brings JavaScript Stored Procedures
Open Source Tech Hub
Open Source Tech Hub
Jan 14, 2024 · Frontend Development

Discover Layui Vue: A Modern Vue 3 Desktop UI Component Library

Layui Vue is a Vue 3‑based desktop UI component library that continues the classic design of the original Layui, offering ready‑to‑use components, a brief history of its evolution, and a detailed update log highlighting new features and bug fixes as of January 2024.

FrontendJavaScriptLayui
0 likes · 4 min read
Discover Layui Vue: A Modern Vue 3 Desktop UI Component Library
HelloTech
HelloTech
Jan 11, 2024 · Frontend Development

React Fiber Workflow and Hook Implementation Overview

React’s core fiber system traverses a depth‑first tree using performUnitOfWork, splits rendering into beginWork and completeWork, then commits in before‑mutation, mutation, and layout phases, while hooks like useState and useEffect are implemented via linked‑list queues that ensure deterministic updates and side‑effect handling.

JavaScriptReActfiber
0 likes · 8 min read
React Fiber Workflow and Hook Implementation Overview
Goodme Frontend Team
Goodme Frontend Team
Jan 10, 2024 · Frontend Development

Essential Frontend Picks: Canvas Collision Detection, CSS Animation Tricks, Design‑to‑Code & Distributed Theory

This curated newsletter shares the latest frontend news and article recommendations, covering JavaScript rising stars, ESLint upgrades, upcoming jQuery 4.0, V8's Maglev compiler, canvas collision detection, CSS animation control, design‑to‑code workflows, distributed theory basics, version‑update popups, and anti‑mistake design principles.

FrontendJavaScriptdesign
0 likes · 6 min read
Essential Frontend Picks: Canvas Collision Detection, CSS Animation Tricks, Design‑to‑Code & Distributed Theory
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 APIFrontendHooks
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.

Best PracticesConditional RenderingFrontend
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.

FrontendJavaScriptReactivity
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.

FrontendJavaScriptProgress
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.

FrontendImage optimizationJavaScript
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 TechniquesAsync/AwaitError handling
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.

CanvasFrontendJavaScript
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.

Build ToolsFrontendJavaScript
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.

FrontendHTML TemplatesJavaScript
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.

Canvas DrawingHTML CanvasJavaScript
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.

FrontendJavaScriptProgramming Basics
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.

JavaScriptPrototypeclass
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.

Data BindingJavaScriptVue
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.

FrontendHTTPJavaScript
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.

HTMLJavaScriptcss
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.

FrontendJavaScriptWebGL
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.

CanvasFrontendJavaScript
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
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.

Error handlingJavaScriptasync
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.

InstrumentationJavaScriptPerformance
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 8, 2023 · Frontend Development

Performance Comparison of WebAssembly (Rust) and JavaScript for Fibonacci and Convex Hull Algorithms

This article investigates whether WebAssembly truly outperforms JavaScript by compiling Rust to wasm and comparing execution times of Fibonacci and convex‑hull algorithms, revealing that data copying and serialization overhead can make wasm slower in realistic front‑end scenarios.

FrontendJavaScriptPerformance
0 likes · 9 min read
Performance Comparison of WebAssembly (Rust) and JavaScript for Fibonacci and Convex Hull Algorithms
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.

JavaScriptObjectWeb Development
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.

CLSFrontendJavaScript
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++JavaScriptPerformance
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.

Build ToolsJavaScriptMDX
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 TableFrontendJavaScript
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.

JavaScriptcssresponsive 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 AlgorithmFrontendJavaScript
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.

FrontendIntersectionObserverJavaScript
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 CompilationJavaScriptWeb Worker
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.

AnimationJavaScriptVue
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 ManipulationValidation
0 likes · 27 min read
Understanding and Using Regular Expressions in JavaScript