Tagged articles

JavaScript

2448 articles · Page 14 of 25
Alibaba Terminal Technology
Alibaba Terminal Technology
Dec 29, 2021 · Frontend Development

Why Modern Browsers Matter: A Deep Dive into Frontend Standardization

This article explores the evolution of browsers, the layered architecture of front‑end development, the role of standardization bodies, and how understanding browser internals—from multi‑process models to JavaScript engines—helps developers write more efficient, compatible, and future‑proof web applications.

HTMLJavaScriptStandardization
0 likes · 20 min read
Why Modern Browsers Matter: A Deep Dive into Frontend Standardization
Alibaba Terminal Technology
Alibaba Terminal Technology
Dec 28, 2021 · Fundamentals

What’s New in TC39’s December Meeting? Intl.Segmenter V2, Array.groupBy, RegExp Enhancements

The December TC39 meeting updated several proposals—including moving Intl.Segmenter to Stage 1 as V2, adding new timeZoneName values, expanding Intl.DisplayNames, introducing Array.prototype.groupBy and Array.fromAsync, and refining RegExp modifiers and buffer boundaries—while outlining the criteria for advancing proposals through the stages.

ECMAScript proposalsJavaScriptTC39
0 likes · 18 min read
What’s New in TC39’s December Meeting? Intl.Segmenter V2, Array.groupBy, RegExp Enhancements
DeWu Technology
DeWu Technology
Dec 23, 2021 · Frontend Development

Pure JavaScript Smooth Curve Generation Using Bézier Curves

This guide shows how to generate smooth, high‑quality curves from a polyline in pure JavaScript by computing quadratic and cubic Bézier points, deriving control points via angle‑bisector geometry, assembling the segments, and rendering and animating the result on an HTML5 canvas without external libraries.

Bézier CurveCanvasFront-end
0 likes · 10 min read
Pure JavaScript Smooth Curve Generation Using Bézier Curves
DeWu Technology
DeWu Technology
Dec 23, 2021 · Frontend Development

Canvas Performance Optimization Techniques

Canvas performance hinges on the number and size of drawn shapes, so optimizing by reducing draw‑calls, using layered or clipped rendering, and offloading heavy drawing to OffscreenCanvas or Web Workers can preserve frame rates and keep the UI responsive.

CanvasJavaScriptPerformance
0 likes · 15 min read
Canvas Performance Optimization Techniques
HomeTech
HomeTech
Dec 22, 2021 · Frontend Development

20 JavaScript One‑Liner Tricks for Frontend Development

This article presents twenty concise JavaScript one‑liner snippets that boost front‑end productivity, covering tasks such as retrieving cookies, converting RGB to hex, copying to clipboard, validating dates, calculating day differences, manipulating strings, arrays, and detecting dark mode, each illustrated with ready‑to‑use code examples.

JavaScriptOne-linercode snippets
0 likes · 8 min read
20 JavaScript One‑Liner Tricks for Frontend Development
Laravel Tech Community
Laravel Tech Community
Dec 20, 2021 · Backend Development

Node.js 12.22.8 (Er) Release: Key Changes and Commit Summary

Node.js 12.22.8 (code‑named “Er”) has been released, featuring a c‑ares update to fix underscore CNAME resolution, updated Mozilla NSS root certificates, and a series of additional commits ranging from build and dependency upgrades to bug fixes across various modules.

JavaScriptNode.jsRelease
0 likes · 3 min read
Node.js 12.22.8 (Er) Release: Key Changes and Commit Summary
DeWu Technology
DeWu Technology
Dec 16, 2021 · Frontend Development

Canvas Performance Optimization Techniques

Optimizing HTML5 canvas performance involves reducing draw calls, using layered and clipped rendering, performing quick bounding‑box checks, and offloading heavy drawing to OffscreenCanvas with Web Workers, enabling smooth animation even when thousands of shapes are rendered.

CanvasJavaScriptPerformance
0 likes · 14 min read
Canvas Performance Optimization Techniques
Sohu Tech Products
Sohu Tech Products
Dec 15, 2021 · Frontend Development

Implementing a Simple Virtual DOM Library with Patch and Diff Algorithms

This article explains how to build a lightweight virtual DOM library in JavaScript, covering the creation of VNode objects, the patch and diff algorithms, handling of attributes, classes, styles, and events, and demonstrates a step‑by‑step implementation using the Snabbdom approach.

Diff AlgorithmJavaScriptPATCH
0 likes · 18 min read
Implementing a Simple Virtual DOM Library with Patch and Diff Algorithms
The Dominant Programmer
The Dominant Programmer
Dec 15, 2021 · Frontend Development

Interactive Polygon Drawing and Area Calculation with Vue and OpenLayers

This tutorial shows how to import the required OpenLayers modules into a Vue project, configure a map, add a Polygon draw interaction, handle the drawend event to compute and format the polygon's area using OpenLayers' getArea function, and provides a complete working example with code.

Area calculationDraw interactionJavaScript
0 likes · 7 min read
Interactive Polygon Drawing and Area Calculation with Vue and OpenLayers
The Dominant Programmer
The Dominant Programmer
Dec 15, 2021 · Frontend Development

How to Draw Lines on a Map with Vue and OpenLayers

This tutorial walks through importing OpenLayers modules into a Vue component, defining line coordinates, creating vector sources and layers, styling the line, and integrating the line layer with other map layers to render a green polyline on the map.

JavaScriptMappingOpenLayers
0 likes · 7 min read
How to Draw Lines on a Map with Vue and OpenLayers
php Courses
php Courses
Dec 12, 2021 · Frontend Development

Understanding Vue 3 Composition API: Ref, Reactive, toRefs, Computed, Watch, Provide/Inject, and Lifecycle Hooks

This article explains Vue 3's Composition API, covering how to create reactive data with ref and reactive, use toRefs, define computed properties, apply readonly, watch and watchEffect, handle lifecycle hooks, pass props, and share state via provide and inject, all with practical code examples.

Composition APIJavaScriptRef
0 likes · 8 min read
Understanding Vue 3 Composition API: Ref, Reactive, toRefs, Computed, Watch, Provide/Inject, and Lifecycle Hooks
php Courses
php Courses
Dec 11, 2021 · Frontend Development

Implementing Vue 3 Reactivity with Proxy, Reactive, and Ref Functions

This article walks through building a Vue 3‑style reactivity system from scratch, covering effect functions, dependency collection with Set/Map/WeakMap, automatic tracking via Proxy, and the implementation of reactive and ref utilities, all illustrated with complete JavaScript code examples.

FrontendJavaScriptReactivity
0 likes · 8 min read
Implementing Vue 3 Reactivity with Proxy, Reactive, and Ref Functions
Laiye Technology Team
Laiye Technology Team
Dec 10, 2021 · Artificial Intelligence

Best Practices for Building an Entity‑Relationship Annotation Tool at Laiye AI R&D Center

This article details Laiye Technology’s AI R&D team’s end‑to‑end approach to designing and optimizing a custom entity‑relationship annotation tool, covering data‑labeling challenges, shortcomings of Excel and off‑the‑shelf solutions, architectural requirements, line‑breaking and mark‑position algorithms, performance improvements, and real‑world results.

JavaScriptPerformance Optimizationdata annotation
0 likes · 12 min read
Best Practices for Building an Entity‑Relationship Annotation Tool at Laiye AI R&D Center
政采云技术
政采云技术
Dec 7, 2021 · Frontend Development

A Comprehensive Guide to Frontend Unit Testing with Jest and Mocha

This article introduces the importance of frontend unit testing, presents survey data on current practices, compares popular frameworks like Jest and Mocha, provides step‑by‑step setup instructions, demonstrates code examples for JavaScript, TypeScript and async functions, and explains how to generate coverage reports and use common assertions.

FrontendJavaScriptJest
0 likes · 16 min read
A Comprehensive Guide to Frontend Unit Testing with Jest and Mocha
Programmer DD
Programmer DD
Dec 4, 2021 · Frontend Development

Boost Your UI with use-gesture: Simple React & Vanilla JS Gestures

This article introduces the use-gesture library, a lightweight React and vanilla JavaScript tool for enriching mouse and touch interactions, explains installation via Yarn or npm, demonstrates various gesture hooks with code examples, and showcases visual effects through animated demos.

JavaScriptReActfrontend development
0 likes · 4 min read
Boost Your UI with use-gesture: Simple React & Vanilla JS Gestures
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 3, 2021 · Frontend Development

Building Web AR with AR.js: A Pure Front‑End Solution

This article introduces a pure‑frontend approach to Web AR using AR.js, explains core technologies like WebRTC, JSARToolKit, A‑Frame, and Three.js, guides through HTTPS setup, demonstrates image‑tracking and video examples, and shows how to integrate Agora video calls for remote cat‑watching.

A-FrameAR.jsAgora
0 likes · 15 min read
Building Web AR with AR.js: A Pure Front‑End Solution
Laiye Technology Team
Laiye Technology Team
Dec 3, 2021 · Frontend Development

Understanding Native ES Modules and Why Vite Is So Fast

This article explains the concept of Native‑ESM, traces the evolution of JavaScript module systems from IIFE to ES Modules, and shows how Vite leverages native ES modules, ESBuild, and caching to achieve dramatically faster cold starts and hot updates compared to traditional bundlers like Webpack.

Build ToolES ModuleFrontend
0 likes · 14 min read
Understanding Native ES Modules and Why Vite Is So Fast
ELab Team
ELab Team
Dec 2, 2021 · Frontend Development

How to Build a Robust @Mention Feature in Frontend Rich Text Editors

This article explores the implementation of @mention functionality in modern front‑end rich‑text editors, covering background, industry examples from Weibo and Twitter, core concepts like Range and Selection APIs, cursor handling, search pop‑ups, key interception, and techniques for inserting custom @tags with code snippets.

JavaScriptRange APISelection API
0 likes · 15 min read
How to Build a Robust @Mention Feature in Frontend Rich Text Editors
KooFE Frontend Team
KooFE Frontend Team
Nov 28, 2021 · Frontend Development

How Konva.js Uses Random Colors for Precise Canvas Hit Detection

Konva.js detects whether a point lies inside a shape by assigning each shape a unique random color key, rendering a hidden hitCanvas with these colors, and then reading the pixel color at the click position to identify the corresponding shape, supporting up to 16.7 million objects.

CanvasJavaScriptKonva.js
0 likes · 5 min read
How Konva.js Uses Random Colors for Precise Canvas Hit Detection
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Nov 26, 2021 · Fundamentals

Understanding V8 Engine Memory Allocation and Garbage Collection

This article explains how the V8 JavaScript engine allocates memory, why garbage collection is necessary, describes the memory layout of new and old generations, reviews common GC algorithms such as reference counting, mark‑sweep, mark‑compact and incremental marking, and offers practical tips for writing high‑performance JavaScript code.

Garbage CollectionJavaScriptV8
0 likes · 22 min read
Understanding V8 Engine Memory Allocation and Garbage Collection
Selected Java Interview Questions
Selected Java Interview Questions
Nov 25, 2021 · Frontend Development

Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions

This article demonstrates how to refactor tangled asynchronous request chains and complex if‑else logic in JavaScript by replacing callback hell with Promise.all and async/await, extracting pure helper functions, and applying best‑practice principles to improve readability, testability, and maintainability.

Async/AwaitFrontendJavaScript
0 likes · 11 min read
Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions
Top Architect
Top Architect
Nov 25, 2021 · Backend Development

Implement QR Code Login with WebSocket Using Spring Boot

This article explains how to build a QR‑code based login system by designing a token table, defining roles, creating two REST APIs (generate QR code and confirm identity), and integrating front‑end JavaScript with a Spring Boot WebSocket server, complete with full code examples and step‑by‑step instructions.

JavaJavaScriptQR Code Login
0 likes · 13 min read
Implement QR Code Login with WebSocket Using Spring Boot
ByteFE
ByteFE
Nov 22, 2021 · Frontend Development

Technical Decision and Practices of Using Web Components in EE NEXT SDK

This document details the EE NEXT SDK team's technical decisions to adopt Web Components for front‑end component development, explains the benefits and drawbacks of Custom Elements and Shadow DOM, outlines challenges such as cross‑stack compatibility, bundle size, style isolation, and provides practical implementation guidance and best‑practice recommendations.

FrontendJavaScriptShadow DOM
0 likes · 15 min read
Technical Decision and Practices of Using Web Components in EE NEXT SDK
TikTok Frontend Technology Team
TikTok Frontend Technology Team
Nov 22, 2021 · Game Development

Technical Overview of Douyin National Day Mini‑Game Development Using Lynx and Cocos Creator

This article details the end‑to‑end development of Douyin's National Day mini‑game, covering the Lynx + Cocos tech stack, core Cocos concepts such as ECS, node hierarchy, lifecycle, a step‑by‑step walkthrough of the star‑catcher demo code, background looping strategies, checkpoint transitions, character Spine animation, resource loading pipelines, custom bitmap fonts, and a series of performance optimizations for mobile deployment.

CocosJavaScriptLynx
0 likes · 28 min read
Technical Overview of Douyin National Day Mini‑Game Development Using Lynx and Cocos Creator
21CTO
21CTO
Nov 21, 2021 · Frontend Development

What’s New in TypeScript 4.5 and Is Google’s Fuchsia the End of Android 12?

The article outlines Microsoft’s TypeScript 4.5 release with its new type‑system features and performance fixes, then shifts to Google’s unveiling of the Fuchsia OS, its microkernel architecture, and growing speculation that Android 12 could be the final Android update.

AndroidFuchsiaGoogle
0 likes · 4 min read
What’s New in TypeScript 4.5 and Is Google’s Fuchsia the End of Android 12?
MaGe Linux Operations
MaGe Linux Operations
Nov 21, 2021 · Backend Development

How to Reverse Engineer Laifeng Live Chat API and Send Automated Messages with Python

This guide walks through extracting and reproducing the encrypted parameters required to post chat messages on Laifeng live streams, covering site navigation, packet capture, timestamp generation, signature calculation via JavaScript decryption, and a complete Python script that logs in, builds the request, and sends the comment.

API reverse engineeringJavaScriptLive Streaming
0 likes · 17 min read
How to Reverse Engineer Laifeng Live Chat API and Send Automated Messages with Python
21CTO
21CTO
Nov 19, 2021 · Artificial Intelligence

Top Programming Languages Powering Modern AI: Benefits & Use Cases

This article reviews the most suitable programming languages for artificial intelligence, explaining why Python, R, Java, LISP, Prolog, C++, Haskell, JavaScript, and Julia excel in AI development and outlining their key advantages and typical applications.

AIC++Java
0 likes · 16 min read
Top Programming Languages Powering Modern AI: Benefits & Use Cases
Sohu Tech Products
Sohu Tech Products
Nov 17, 2021 · Frontend Development

The Enduring Role of jQuery in Modern Web Development

Despite the rise of newer frameworks like React and Next.js, jQuery remains a dominant JavaScript library with a 78% market share, deeply embedded in platforms such as WordPress, and continues to evolve through updates to its core and UI components while facing performance debates.

FrontendJavaScriptLegacy Libraries
0 likes · 7 min read
The Enduring Role of jQuery in Modern Web Development
ELab Team
ELab Team
Nov 17, 2021 · Frontend Development

Mastering ESLint: From Quick Setup to Advanced Rule Customization

This article explains what ESLint is, walks through its installation and basic configuration, dives into detailed rule, parser, and plugin settings, describes its AST‑based analysis process, and shows how to integrate it with tools like VSCode, Prettier, Husky and lint‑staged for robust JavaScript code quality enforcement.

ESLintGit HooksJavaScript
0 likes · 19 min read
Mastering ESLint: From Quick Setup to Advanced Rule Customization
ByteDance Web Infra
ByteDance Web Infra
Nov 16, 2021 · Frontend Development

Why Rust Is the Future of JavaScript Infrastructure

Rust, a fast and memory‑efficient language adopted by major tech firms, is increasingly replacing JavaScript in web tooling such as bundlers, compilers, and linters, with projects like SWC, Deno, and WebAssembly demonstrating its performance, safety, and growing ecosystem for the future of JavaScript infrastructure.

JavaScriptPerformanceRust
0 likes · 17 min read
Why Rust Is the Future of JavaScript Infrastructure
Programmer DD
Programmer DD
Nov 15, 2021 · Game Development

How to Build a Fully Playable 13KB JavaScript Game: Tips from the JS13k Contest

This article explores the surprising 13KB JavaScript game "Space Huggers," explains the JS13k competition rules, and shares practical techniques—pixel graphics, minimalist sound, lightweight engines, and code trimming—that developers can use to create ultra‑small yet functional browser games.

FrontendJS13kJavaScript
0 likes · 6 min read
How to Build a Fully Playable 13KB JavaScript Game: Tips from the JS13k Contest
Java Backend Technology
Java Backend Technology
Nov 7, 2021 · Artificial Intelligence

6 Must‑Try Open‑Source Projects to Boost Your Development Skills

This article introduces six intriguing open‑source projects—including an audio‑based keylogger, a high‑accuracy face‑recognition library, a TensorFlow.js video‑person removal tool, a Chinese kinship calculator, a Java Word template engine, and a sleek macOS Markdown editor—each with brief descriptions, screenshots, and usage examples.

AIJavaJavaScript
0 likes · 5 min read
6 Must‑Try Open‑Source Projects to Boost Your Development Skills
Alibaba Terminal Technology
Alibaba Terminal Technology
Nov 5, 2021 · Fundamentals

Understanding the Latest TC39 Proposals: Intl.Segmenter, Error Cause, RegExp Enhancements and More

This article reviews recent TC39 proposals that have reached Stage 4—including Intl.Segmenter, Error Cause, Intl.DurationFormat, Array.groupBy, Destructuring Private Fields, String.cooked, RegExp modifiers, RegExp \R, buffer boundaries, Evaluator Attributes, and Bind‑this—explaining their goals, usage, and providing practical JavaScript code examples.

ECMAScriptJavaScriptLanguage Proposals
0 likes · 22 min read
Understanding the Latest TC39 Proposals: Intl.Segmenter, Error Cause, RegExp Enhancements and More
Programmer DD
Programmer DD
Nov 4, 2021 · Frontend Development

Unlock Browser P2P File Sharing with WebTorrent: A Hands‑On Guide

This article introduces WebTorrent, an open‑source JavaScript library that brings BitTorrent‑style peer‑to‑peer file sharing and streaming directly to browsers using WebRTC, explains its advantages over traditional download tools, and provides step‑by‑step code examples for both web and Node environments.

JavaScriptOpen SourceP2P
0 likes · 6 min read
Unlock Browser P2P File Sharing with WebTorrent: A Hands‑On Guide
JavaScript
JavaScript
Nov 2, 2021 · Frontend Development

Why jQuery Still Matters in a React‑Dominated Web Landscape

This article examines jQuery’s historic rise, its deep integration in platforms like WordPress, the reasons it survived the shift to modern frameworks such as React, Angular and Vue, and why it may still be a useful tool despite declining popularity.

JavaScriptWeb HistoryWordPress
0 likes · 6 min read
Why jQuery Still Matters in a React‑Dominated Web Landscape
ELab Team
ELab Team
Oct 28, 2021 · Information Security

How to Build a Secure JavaScript Sandbox: Techniques, Code, and Pitfalls

This article explains the concept of JavaScript sandboxing, outlines common use cases, walks through several implementation strategies—from simple eval wrappers to with‑Proxy‑iframe combos—and discusses sandbox escape techniques and how to mitigate them, providing practical code examples throughout.

FrontendJavaScriptSecurity
0 likes · 14 min read
How to Build a Secure JavaScript Sandbox: Techniques, Code, and Pitfalls
KooFE Frontend Team
KooFE Frontend Team
Oct 28, 2021 · Frontend Development

How to Detect Canvas Shape Clicks Using Pixel Color and Transparency

By leveraging pixel color and alpha values, this guide explains how to determine whether a user click falls inside a Canvas shape, compares it with traditional methods like crossing number and winding number, and provides a practical implementation using Create.js with sample code.

Create.jsJavaScripthit testing
0 likes · 5 min read
How to Detect Canvas Shape Clicks Using Pixel Color and Transparency
Laravel Tech Community
Laravel Tech Community
Oct 24, 2021 · Frontend Development

Useful JavaScript Code Snippets for Common Front‑End Tasks

This article provides a collection of practical JavaScript snippets covering cookie handling, color conversion, clipboard operations, date validation, string manipulation, array utilities, URL query extraction, time formatting, and dark‑mode detection, all useful for front‑end developers.

FrontendJavaScriptWeb Development
0 likes · 8 min read
Useful JavaScript Code Snippets for Common Front‑End Tasks
Full-Stack Trendsetter
Full-Stack Trendsetter
Oct 20, 2021 · Frontend Development

Why Vue Component data Must Be a Function, Not an Object

The article explains that while a Vue root instance can define its data as an object or a function, a component's data must be a function to avoid shared memory between instances, illustrating the issue with code examples and detailing Vue's option‑merge validation.

@DataComponentFunction
0 likes · 4 min read
Why Vue Component data Must Be a Function, Not an Object
ELab Team
ELab Team
Oct 19, 2021 · Fundamentals

Unlocking QR Code Secrets: Principles, Design, and Code Generation

This article explains QR code fundamentals, including its advantages, structural components, error‑correction levels, design principles, generation workflow, JavaScript implementation details, and extensions such as artistic QR codes and mini‑program codes, providing practical examples and visual illustrations.

Error CorrectionJavaScriptartistic QR
0 likes · 11 min read
Unlocking QR Code Secrets: Principles, Design, and Code Generation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 19, 2021 · Frontend Development

Implementing the Fancy-Components Wave Filter Web Component Across Frontend Frameworks

This article explains how to replace a heavy 78 KB GIF loading animation with the lightweight Fancy-Components wave‑filter web component, covering its installation, configuration, and usage in plain HTML, React, Vue 2, Vue 3, Vue‑CLI, Vite, and custom attribute options such as color, duration, amplitude, delay, mode, and interval.

CSSFrontendJavaScript
0 likes · 27 min read
Implementing the Fancy-Components Wave Filter Web Component Across Frontend Frameworks
php Courses
php Courses
Oct 18, 2021 · Frontend Development

AJAX Technology – Asynchronous Data Retrieval (Course Overview)

This course introduces AJAX (Asynchronous JavaScript and XML), explaining how it enables browsers to fetch data without page refresh by sending asynchronous requests, and clarifies that AJAX is a technique combining existing web standards rather than a new programming language.

AJAXCourseFrontend
0 likes · 1 min read
AJAX Technology – Asynchronous Data Retrieval (Course Overview)
Fulu Network R&D Team
Fulu Network R&D Team
Oct 18, 2021 · Frontend Development

Implementing mini-async-dva: Adding async/await Support to DVA

This article examines the limitations of the original DVA framework, proposes a mini‑async‑dva fork that adds async/await support to model effects, and details its implementation—including store management, dynamic model registration, and asynchronous component loading—while providing full code comparisons.

Async/AwaitDVAJavaScript
0 likes · 8 min read
Implementing mini-async-dva: Adding async/await Support to DVA
KooFE Frontend Team
KooFE Frontend Team
Oct 17, 2021 · Frontend Development

Why React Hooks Were Created and How to Choose Between ahooks and react-use

This article explains why React introduced Hooks, compares the official Hooks with popular third‑party libraries ahooks and react‑use, lists their most useful Hooks, shows how to install them, and provides a custom Hook example for displaying error modals, helping developers write cleaner, more reusable functional components.

FrontendHooksJavaScript
0 likes · 16 min read
Why React Hooks Were Created and How to Choose Between ahooks and react-use
ELab Team
ELab Team
Oct 15, 2021 · Frontend Development

Mastering Redux: Core Principles, Architecture, and Real-World Implementation

This article provides a comprehensive overview of Redux, covering its design philosophy, core components, API implementation, React bindings, and practical code examples to help developers understand and apply state management effectively in modern front‑end applications.

FrontendJavaScriptMiddleware
0 likes · 18 min read
Mastering Redux: Core Principles, Architecture, and Real-World Implementation
iQIYI Technical Product Team
iQIYI Technical Product Team
Oct 15, 2021 · Frontend Development

Applying Source Maps for Front-End Error Monitoring in Production

The article explains how integrating Source Maps—generated by modern bundlers and automatically uploaded via a Webpack plugin—into iQIYI Hawkeye’s front‑end exception monitoring restores original file names and line numbers for minified production JavaScript errors, enabling rapid debugging despite bundle‑size and versioning challenges.

Front-endHawkeyeJavaScript
0 likes · 11 min read
Applying Source Maps for Front-End Error Monitoring in Production
Xueersi 1-on-1 Technology Team
Xueersi 1-on-1 Technology Team
Oct 14, 2021 · Frontend Development

Mastering Theme Switching: 8 Proven Methods to Implement Dark/Light Modes in Web Apps

This article explores eight practical techniques for implementing theme switching in web applications—including class toggling, stylesheet swapping, CSS variables, alternate rel links, Less modifyVars, Ant Design/Vant custom themes, Element‑UI dynamic theming, and JSS—detailing code snippets, advantages, and limitations of each approach.

CSSFrontendJSS
0 likes · 11 min read
Mastering Theme Switching: 8 Proven Methods to Implement Dark/Light Modes in Web Apps
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2021 · Frontend Development

Building a Simple Hongxing Erke Clone with WeChat Mini Program Cloud Development

This article walks through creating a lightweight Hongxing Erke‑style e‑commerce mini‑program using WeChat's cloud development, covering tool setup, cloud database design, UI layout, tabBar customization, data loading, pagination, sorting, and detail‑page navigation with practical code examples and common pitfalls.

JavaScriptWeChat Mini Programcloud database
0 likes · 15 min read
Building a Simple Hongxing Erke Clone with WeChat Mini Program Cloud Development
Sohu Tech Products
Sohu Tech Products
Oct 14, 2021 · Backend Development

Design and Implementation of Full‑Chain Tracing for Node.js Applications Using Async Hooks

This article explains the necessity, design principles, and concrete implementation of a full‑chain tracing system for Node.js applications, covering architecture choices, industry solutions, core Async Hooks concepts, the zone‑context framework, invoke‑tree construction, garbage collection, and practical demo code.

Full-Chain TracingJavaScriptNode.js
0 likes · 18 min read
Design and Implementation of Full‑Chain Tracing for Node.js Applications Using Async Hooks
ELab Team
ELab Team
Oct 13, 2021 · Frontend Development

How V8 Supercharges JavaScript: Inside the Engine’s Magic

This article explores the V8 JavaScript engine’s architecture, from its historical origins and source‑code acquisition to its loading strategies, lexical analysis, parsing, compilation, and execution optimizations, illustrating how V8 achieves high performance in browsers and Node.js.

CompilationEngineJIT
0 likes · 23 min read
How V8 Supercharges JavaScript: Inside the Engine’s Magic
TikTok Frontend Technology Team
TikTok Frontend Technology Team
Oct 13, 2021 · Frontend Development

A Historical Overview and Fundamentals of JavaScript Frameworks

This article reviews the evolution of JavaScript frameworks over the past three decades, defines what constitutes a framework, explains their core concepts of constraint and support, and analyzes how changing web requirements have driven the development of modern front‑end architectures.

Declarative programmingJavaScriptWeb History
0 likes · 23 min read
A Historical Overview and Fundamentals of JavaScript Frameworks
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Oct 13, 2021 · Frontend Development

Understanding RxJS: Core Concepts, Operators, and Practical Implementations

This article introduces RxJS, explains its reactive programming paradigm, core concepts such as Observables, Observers, Subjects, Operators and Schedulers, and demonstrates practical implementations like a draggable ball and toast notifications, providing code examples and best‑practice guidance for front‑end developers.

FrontendJavaScriptObservables
0 likes · 11 min read
Understanding RxJS: Core Concepts, Operators, and Practical Implementations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 11, 2021 · Frontend Development

Understanding Event Bubbling and Capturing in JavaScript

This article explains JavaScript’s event flow, detailing the three phases of capturing, target, and bubbling, demonstrates how to use addEventListener with the useCapture flag, and shows practical techniques for handling, delegating, and stopping event propagation in web applications.

DOMEvent BubblingEvent Capturing
0 likes · 10 min read
Understanding Event Bubbling and Capturing in JavaScript
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Oct 11, 2021 · Frontend Development

DrawIO Secondary Development: A Comprehensive Technical Guide

This guide walks developers through DrawIO secondary development, explaining why integration is needed, how to set up Java/Ant, clone and build the source, configure dev mode, deploy via various platforms, and use core APIs like getCurrentFile and loadFile, with a starter scaffold on GitHub.

Diagram ToolDrawioJavaScript
0 likes · 23 min read
DrawIO Secondary Development: A Comprehensive Technical Guide
Alibaba Terminal Technology
Alibaba Terminal Technology
Oct 8, 2021 · Backend Development

Which Node.js Core Utilities Should You Upgrade? A Hands‑On Comparison

This article reviews a series of common Node.js utilities—type checking, async sleep, file handling, streams, HTTP requests, assertions, code coverage, debugging, deprecation warnings, source‑maps, child processes, and CLI testing—comparing community packages with built‑in APIs, rating their replaceability, and offering practical migration advice for modern Node.js development.

JavaScriptNode.jsbackend
0 likes · 21 min read
Which Node.js Core Utilities Should You Upgrade? A Hands‑On Comparison
Programmer DD
Programmer DD
Oct 6, 2021 · Frontend Development

Make Coding Fun with the Chuncai Desktop Companion Plugin

During the holiday the author introduces Chuncai, an open‑source desktop companion plugin that greets developers, displays messages, and can be customized, then provides the full JavaScript implementation, configuration details, Tuling API integration, and step‑by‑step instructions for embedding it into a web page.

FrontendJavaScriptPlugin
0 likes · 7 min read
Make Coding Fun with the Chuncai Desktop Companion Plugin
Taobao Frontend Technology
Taobao Frontend Technology
Sep 27, 2021 · Frontend Development

Front‑End Highlights: Nuxt 3 Launch, Learning Games, and Fresh Open‑Source Tools

This roundup covers the upcoming Nuxt 3 release with performance upgrades, the retirement of layui, interactive front‑end learning games, new zero‑config frameworks like siroc, a faster coloring tool Nano Colors, the unified unplugin system, Tailwind Mobile component library, plus articles on Tubi engineer culture and Rome's migration to Rust.

JavaScriptNuxt 3Rust
0 likes · 9 min read
Front‑End Highlights: Nuxt 3 Launch, Learning Games, and Fresh Open‑Source Tools
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 27, 2021 · Frontend Development

Migrating a Vue 2 Project from Vue CLI to Vite: Step‑by‑Step Guide

This article provides a comprehensive step‑by‑step guide for migrating a Vue 2 project built with Vue CLI to Vite, covering project structure analysis, removal of Vue CLI dependencies, configuration changes, handling of environment variables, alias setup, JSX support, asset handling, and additional build optimizations.

Build ToolsJavaScriptMigration
0 likes · 20 min read
Migrating a Vue 2 Project from Vue CLI to Vite: Step‑by‑Step Guide
Programmer DD
Programmer DD
Sep 27, 2021 · Frontend Development

Is LayUI’s Shutdown a Signal of Shifting Frontend Trends?

The article examines LayUI’s impending shutdown, its simple yet practical design for backend developers, distinctive visual appeal, the paid LayAdmin extension, technical limitations such as its custom module system and mobile support, and speculates on why the project is being discontinued.

FrontendJavaScriptLayui
0 likes · 6 min read
Is LayUI’s Shutdown a Signal of Shifting Frontend Trends?
DeWu Technology
DeWu Technology
Sep 24, 2021 · Frontend Development

Canceling Duplicate HTTP Requests in Front-End Development

The article explains how front‑end developers can prevent duplicate or stale HTTP calls by identifying identical requests with a unique key, then canceling them using Axios’s CancelToken or Fetch’s AbortController—integrated via React hooks, Axios interceptors, and route‑change cleanup.

HTTPJavaScriptReAct
0 likes · 10 min read
Canceling Duplicate HTTP Requests in Front-End Development
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Sep 23, 2021 · Backend Development

Mastering Commander.js: Build Powerful Node.js CLIs with Ease

This comprehensive guide walks you through installing Commander.js, declaring program variables, defining options (including booleans, required, variadic, and default values), creating commands and arguments, customizing help output, using hooks, handling async actions, and advanced parsing configurations for robust Node.js command‑line applications.

CLICommander.jsJavaScript
0 likes · 27 min read
Mastering Commander.js: Build Powerful Node.js CLIs with Ease
ByteFE
ByteFE
Sep 23, 2021 · Frontend Development

Building a 1‑to‑1 WebRTC Real‑Time Audio/Video Call in the Browser

This article explains how to create a browser‑based 1‑to‑1 real‑time audio/video communication application using WebRTC APIs, covering media capture, SDP and ICE handling, signaling with socket.io, peer‑to‑peer connection setup, data channels, and NAT traversal techniques.

JavaScriptRTCPeerConnectionReal-time communication
0 likes · 15 min read
Building a 1‑to‑1 WebRTC Real‑Time Audio/Video Call in the Browser
ELab Team
ELab Team
Sep 22, 2021 · Frontend Development

Can Web Components Replace Frontend Frameworks? A Deep Dive

This article examines why modern frontend developers adopt frameworks, outlines their advantages and drawbacks, and then explores Web Components—custom elements, Shadow DOM, and HTML templates—as native alternatives that could potentially replace framework‑based componentization while preserving performance and compatibility.

JavaScriptcustom elementsfrontend frameworks
0 likes · 30 min read
Can Web Components Replace Frontend Frameworks? A Deep Dive
Tencent Cloud Developer
Tencent Cloud Developer
Sep 17, 2021 · Frontend Development

Ten Vue.js Performance Optimization Techniques

This guide outlines ten Vue.js performance optimization techniques—including using stable keys in v‑for, freezing immutable data, defining component data as a function, lazy‑loading components, separating non‑reactive data, employing event delegation, leveraging functional components, and using provide/inject—to boost rendering speed, cut memory usage, and simplify maintenance.

JavaScriptPerformanceVue.js
0 likes · 13 min read
Ten Vue.js Performance Optimization Techniques
Tencent Cloud Developer
Tencent Cloud Developer
Sep 16, 2021 · Frontend Development

Understanding WebAssembly: Introduction, Setup, and Performance Evaluation

WebAssembly is a portable, low‑size binary format that complements JavaScript by letting C, C++, Rust, and other languages compile to fast‑loading modules, offering near‑native speed, easy macOS setup with Emscripten, measurable performance gains such as a 1.9× speed‑up on recursive Fibonacci, and seamless interaction with JavaScript for compute‑heavy web applications.

EmscriptenJavaScriptPerformance
0 likes · 10 min read
Understanding WebAssembly: Introduction, Setup, and Performance Evaluation
Taobao Frontend Technology
Taobao Frontend Technology
Sep 14, 2021 · Frontend Development

Uncover the History and Core Features of Monaco Editor, the Web‑Based Code Editor Behind VS Code

Monaco Editor, the browser‑based code editor powering VS Code, originated in 2011 under Erich Gamma’s team, offers a lightweight editor control with rich UI widgets, and Monarch‑based syntax highlighting, and LSP‑compatible APIs, making it ideal for embedding advanced editing features into any web application.

JavaScriptLanguage SupportMonaco Editor
0 likes · 9 min read
Uncover the History and Core Features of Monaco Editor, the Web‑Based Code Editor Behind VS Code
Java High-Performance Architecture
Java High-Performance Architecture
Sep 14, 2021 · Frontend Development

Automate Vue2 to Vue3 Migration with GoGoCode: A Step‑by‑Step Guide

This article explains how to use the GoGoCode CLI tool to automatically convert Vue 2 projects to Vue 3 by following the official migration guide, installing the tool, running conversion commands, reviewing generated code, and handling common break‑change scenarios such as async components, custom directives, and API updates.

CLIGoGoCodeJavaScript
0 likes · 8 min read
Automate Vue2 to Vue3 Migration with GoGoCode: A Step‑by‑Step Guide
ELab Team
ELab Team
Sep 10, 2021 · Frontend Development

Mastering the State Pattern: Light Switch to Finite State Machines in JS

This article explains why using if‑else for state handling violates the Open‑Closed Principle, introduces the State design pattern with a light‑switch example, demonstrates its implementation in JavaScript (including class‑based and functional FSM libraries), and compares it to the Strategy pattern.

Design PatternsFinite State MachineJavaScript
0 likes · 17 min read
Mastering the State Pattern: Light Switch to Finite State Machines in JS
Alibaba Terminal Technology
Alibaba Terminal Technology
Sep 10, 2021 · Frontend Development

New TC39 Stage 3‑4 Proposals: .at(), Object.hasOwn, Pipeline Operator, and More

The article reviews the recent TC39 meeting, outlines the criteria for advancing proposals to Stage 4, and explains several upcoming ECMAScript features—including the relative‑indexing .at() method, Object.hasOwn, class static initialization blocks, the pipeline operator, and other proposals—providing code examples and implementation status.

ECMAScript proposalsJavaScriptTC39
0 likes · 17 min read
New TC39 Stage 3‑4 Proposals: .at(), Object.hasOwn, Pipeline Operator, and More