Tagged articles

JavaScript

2448 articles · Page 15 of 25
ByteFE
ByteFE
Sep 9, 2021 · Frontend Development

How to Build a Canvas‑Based Image Cropping Hook in React

This article explains how to create a reusable React hook that uses two canvas layers to let users select a region on an image, shows a gray‑out overlay with a border during selection, and returns the cropped area as a base64 PNG, including full implementation details and future enhancements.

CanvasFrontendHook
0 likes · 12 min read
How to Build a Canvas‑Based Image Cropping Hook in React
ByteFE
ByteFE
Sep 8, 2021 · Frontend Development

Implementing Sorting Algorithm Visualizations with JavaScript and Canvas

This article explains how to create animated visualizations of 50 sorting algorithms using JavaScript and the HTML5 canvas by converting array elements into polar coordinates, randomizing their positions, and redrawing the canvas step‑by‑step during the sorting process, complete with full source code examples.

Algorithm AnimationFrontendJavaScript
0 likes · 20 min read
Implementing Sorting Algorithm Visualizations with JavaScript and Canvas
Taobao Frontend Technology
Taobao Frontend Technology
Sep 6, 2021 · Frontend Development

Latest Electron 14 Release, React Native Updates, and Key JavaScript Insights

This roundup covers the Electron 14.0.0 release with new eight‑week cadence and expanded support, StackBlitz's quick Nuxt.js creation, notable open‑source libraries like react‑native‑elements and 7guis‑React‑TypeScript‑MobX, plus deep dives into NestJS practices, React Native's new architecture, Recoil state management, and a comparison of Object versus Map in JavaScript.

Backend DevelopmentElectronJavaScript
0 likes · 6 min read
Latest Electron 14 Release, React Native Updates, and Key JavaScript Insights
ByteDance Web Infra
ByteDance Web Infra
Sep 3, 2021 · Frontend Development

Understanding XState Finite State Machines and Statecharts for Frontend Development

This article explains the challenges of managing UI state in modern web applications, demonstrates how incremental code examples lead to complex and coupled logic, and introduces XState finite state machines and statecharts as a structured solution with practical JavaScript examples and ecosystem overview.

Finite State MachineFrontendJavaScript
0 likes · 9 min read
Understanding XState Finite State Machines and Statecharts for Frontend Development
Taobao Frontend Technology
Taobao Frontend Technology
Sep 2, 2021 · Frontend Development

Why Front-End Developers Must Master Functional Programming and React Hooks

This article explores the history and principles of functional programming, explains why it has become essential for front‑end developers, demonstrates how React class components can be replaced by functional components using hooks, and provides practical examples of pure functions, functors, monads, memoization, and related design patterns in JavaScript.

Functional ProgrammingJavaScriptReAct
0 likes · 21 min read
Why Front-End Developers Must Master Functional Programming and React Hooks
TAL Education Technology
TAL Education Technology
Sep 2, 2021 · Frontend Development

Understanding and Solving Memory Leaks in Vue Single‑Page Applications

This article explains what memory leaks are in JavaScript, how to detect them using Chrome's memory tools, enumerates common causes in Vue SPAs, and provides practical solutions and code examples—including event unbinding and keep‑alive refactoring—to effectively eliminate leaks and improve performance.

FrontendJavaScriptPerformance
0 likes · 7 min read
Understanding and Solving Memory Leaks in Vue Single‑Page Applications
Alibaba Terminal Technology
Alibaba Terminal Technology
Sep 1, 2021 · Frontend Development

Why Front‑End Developers Must Master Functional Programming and React Hooks

This article explores the history and resurgence of functional programming, explains why it is essential for modern front‑end development, demonstrates class and function components in React, introduces hooks, functors, monads, partial application, memoization, and provides practical code examples for building robust, side‑effect‑free UI logic.

Functional ProgrammingJavaScriptMonad
0 likes · 19 min read
Why Front‑End Developers Must Master Functional Programming and React Hooks
政采云技术
政采云技术
Aug 31, 2021 · Frontend Development

Minimal Inventory in E‑commerce: SKU and Algorithm Implementation

This article explains the theory and practice of handling SKU (Stock Keeping Unit) in e‑commerce platforms, covering product creation, cart selection, Cartesian‑product based SKU generation, adjacency‑matrix and set‑theory approaches, and provides complete JavaScript implementations for front‑end developers.

FrontendJavaScriptcartesian product
0 likes · 18 min read
Minimal Inventory in E‑commerce: SKU and Algorithm Implementation
ByteDance Terminal Technology
ByteDance Terminal Technology
Aug 31, 2021 · Frontend Development

ByteDance Modern Web Development Survey Report (2021)

The 2021 ByteDance Modern Web Development survey of 612 developers reveals dominant use of ES6+, TypeScript, Vue and React, widespread adoption of CSS preprocessors, varied backend preferences, and preferred tooling such as Webpack, VSCode, and Prettier, highlighting current trends and gaps in the Chinese front‑end ecosystem.

CSSFrontendJavaScript
0 likes · 10 min read
ByteDance Modern Web Development Survey Report (2021)
php Courses
php Courses
Aug 31, 2021 · Mobile Development

React Native and H5 Interaction: Communication Methods and Code Examples

This article explains how to enable two-way communication between React Native and H5 pages using WebView, covering message handling in both directions, code examples for sending and receiving data, and important migration notes from the built‑in WebView to react‑native‑webview.

AndroidH5JavaScript
0 likes · 5 min read
React Native and H5 Interaction: Communication Methods and Code Examples
ByteFE
ByteFE
Aug 30, 2021 · Frontend Development

Deep Dive into Axios: Core Architecture, Request Flow, and Customization

This article provides a comprehensive analysis of Axios, covering its core directory structure, internal request/response flow, interceptor mechanism, data transformation, adapter handling, and ways to customize or replace default behavior, illustrated with extensive source code excerpts.

AdapterFront‑endHTTP
0 likes · 18 min read
Deep Dive into Axios: Core Architecture, Request Flow, and Customization
Architecture Digest
Architecture Digest
Aug 29, 2021 · Backend Development

Implementing High‑Performance Large File HTTP Upload with Resume Support Using C Server and HTML5/JavaScript

This article explains how to build a high‑performance large‑file HTTP upload system with breakpoint resume, detailing server‑side C implementation, immediate disk writes, client‑side hash generation, cookie‑based IDs, and JavaScript code for chunked uploading, progress tracking, and error handling.

C serverHTML5HTTP resume
0 likes · 10 min read
Implementing High‑Performance Large File HTTP Upload with Resume Support Using C Server and HTML5/JavaScript
ByteDance Web Infra
ByteDance Web Infra
Aug 27, 2021 · Frontend Development

ESM Package Distribution and Next‑Generation Unbundled Development Tools

This article explains how ESM package distribution services convert npm packages to ESModule format, why such distribution is needed for modern browsers, the technical challenges involved, proposed solutions, and how these services can be combined with next‑generation unbundled development tools like Vite and Snowpack to dramatically speed up dependency installation and development server startup.

CDNESMFrontend
0 likes · 14 min read
ESM Package Distribution and Next‑Generation Unbundled Development Tools
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 26, 2021 · Frontend Development

How to Fix HTML Entity Bugs That Break Rich Text Rendering

This article explains why HTML entities like "<" and ">" can disappear in rich‑text fields, analyzes the underlying tokenizer state machine, and provides a lightweight hack that inserts empty comment nodes to preserve the original text without breaking legacy rendering logic.

Bug FixEntityHTML
0 likes · 12 min read
How to Fix HTML Entity Bugs That Break Rich Text Rendering
Sohu Tech Products
Sohu Tech Products
Aug 25, 2021 · Backend Development

Understanding Node.js Module System and Implementing a Custom Require Loader

This article explains how Node.js implements module loading using the CommonJS wrapper, demonstrates the role of the built‑in vm module for isolated execution, and walks through building a custom Require function with path resolution, file reading, extension handling, caching, and automatic extension resolution.

CommonJSJavaScriptNode.js
0 likes · 14 min read
Understanding Node.js Module System and Implementing a Custom Require Loader
Tencent Cloud Developer
Tencent Cloud Developer
Aug 25, 2021 · Fundamentals

A Comprehensive Guide to JavaScript/TypeScript Decorators and Their Practical Use

The guide explains JavaScript/TypeScript decorators—an ECMAScript stage‑2 proposal used in frameworks like Angular, Nest.js, and TypeORM—by distinguishing the decorator pattern, function, and @syntax, demonstrating a four‑step manual implementation that logs execution time, and linking decorators to AOP, IoC, and DI concepts.

AOPDecoratorIOC
0 likes · 10 min read
A Comprehensive Guide to JavaScript/TypeScript Decorators and Their Practical Use
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 24, 2021 · Frontend Development

Master WeChat Mini Program Development: From Setup to Advanced Features

This comprehensive guide walks you through installing the WeChat Developer Tool, creating a Mini Program project, understanding its file structure, using WXML/WXSS for layout and styling, handling data binding, templates, imports, custom scripts, configuration files, sitemap settings, and event binding, all illustrated with step‑by‑step screenshots and code examples.

Front-endJavaScriptWXML
0 likes · 18 min read
Master WeChat Mini Program Development: From Setup to Advanced Features
Laravel Tech Community
Laravel Tech Community
Aug 23, 2021 · Fundamentals

Pros and Cons of JavaScript, Haskell, Go, and PHP

This article compares four popular programming languages—JavaScript, Haskell, Go, and PHP—by outlining their key advantages such as rapid prototyping, functional features, simplicity, and ecosystem support, as well as their notable drawbacks including dynamic typing, steep learning curves, lack of generics, and quirky language behaviors.

GoHaskellJavaScript
0 likes · 10 min read
Pros and Cons of JavaScript, Haskell, Go, and PHP
JavaScript
JavaScript
Aug 23, 2021 · Frontend Development

Detecting Object Properties in JavaScript: Truthy, in Operator, hasOwnProperty

This article compares three common JavaScript techniques—truthy value checks, the in operator, and hasOwnProperty()—explaining how each works, their handling of falsy values and prototype inheritance, and providing code examples and edge‑case solutions for reliable property detection.

IN operatorJavaScripthasOwnProperty
0 likes · 5 min read
Detecting Object Properties in JavaScript: Truthy, in Operator, hasOwnProperty
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Aug 20, 2021 · Frontend Development

Evolution of a New Web Live Streaming System: From Flash to HTML5, AI Integration, and Modular Refactoring

This article chronicles the development of a new web live streaming solution, detailing the shift from Flash to HTML5 video, the integration of AI voice detection using hark, audio encoding with lamejs, WebRTC-based real‑time communication, and a systematic modular refactor that transformed the project into a reusable frontend framework.

FrontendHTML5JavaScript
0 likes · 8 min read
Evolution of a New Web Live Streaming System: From Flash to HTML5, AI Integration, and Modular Refactoring
KooFE Frontend Team
KooFE Frontend Team
Aug 19, 2021 · Frontend Development

How React 18 Changes Suspense Behavior: What Developers Need to Know

This article explains the key differences between Legacy Suspense and Concurrent Suspense in React 18, covering how sibling components are handled, ref timing outside Suspense boundaries, and the impact on rendering and effects, helping developers adapt their code for the new model.

Concurrent ReactFrontendJavaScript
0 likes · 8 min read
How React 18 Changes Suspense Behavior: What Developers Need to Know
Open Source Tech Hub
Open Source Tech Hub
Aug 18, 2021 · Frontend Development

Mastering JavaScript Promises: Concepts, Usage, and Common Pitfalls

This article explains what JavaScript Promises are, their three immutable states, typical use‑cases for handling asynchronous operations, practical syntax and examples—including then and catch methods—while also highlighting their advantages over callback hell and their inherent limitations.

JavaScriptPromisecatch
0 likes · 9 min read
Mastering JavaScript Promises: Concepts, Usage, and Common Pitfalls
ELab Team
ELab Team
Aug 18, 2021 · Frontend Development

Unlock Powerful Audio Effects with Web Audio API: A Hands‑On Guide

This article introduces the Web Audio API, covering AudioContext, audio nodes, routing graphs, various source types, processing nodes like AnalyserNode and BiquadFilterNode, as well as spatialization with PannerNode and convolution reverb, providing code examples and practical demos for frontend developers.

AudioContextFrontendJavaScript
0 likes · 16 min read
Unlock Powerful Audio Effects with Web Audio API: A Hands‑On Guide
Taobao Frontend Technology
Taobao Frontend Technology
Aug 18, 2021 · Frontend Development

How VS Code Achieves Lightning‑Fast Startup: Front‑End Performance Secrets

This article summarizes the CovalenceConf 2019 talk on VS Code’s startup performance, detailing measurement practices, code‑size reductions, lifecycle re‑ordering, V8 code caching, requestIdleCallback usage, and perceived‑performance tricks that together shrink launch time from seconds to under one second.

ElectronJavaScriptPerformance Optimization
0 likes · 17 min read
How VS Code Achieves Lightning‑Fast Startup: Front‑End Performance Secrets
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 16, 2021 · Fundamentals

Why Refactoring Matters: Practical Tips and Code Smell Solutions

This article, based on the author’s experience and Martin Fowler’s book, explains what refactoring is, why it’s essential, how to spot code smells, and provides concrete principles and JavaScript examples to improve code design, readability, and maintainability without focusing on performance.

JavaScriptbest practicescode smells
0 likes · 27 min read
Why Refactoring Matters: Practical Tips and Code Smell Solutions
php Courses
php Courses
Aug 16, 2021 · Backend Development

Implementing WeChat Share Interface with PHP and JavaScript

This tutorial walks through registering a WeChat public account, configuring developer information and JS security domains, creating a PHP class to obtain the JS‑API signature, setting up PHP file configuration, and embedding the required JavaScript/HTML to enable custom share titles, descriptions, links, and images on WeChat.

APIJavaScriptWeChat
0 likes · 8 min read
Implementing WeChat Share Interface with PHP and JavaScript
ELab Team
ELab Team
Aug 16, 2021 · Frontend Development

How to Build a Danmaku (Bullet Comment) System with HTML, CSS, and Canvas

This article explains the concept of danmaku (bullet comments), why they improve user experience, and provides a detailed guide on implementing a danmaku system using HTML + CSS or Canvas, including stage design, track management, collision handling, and reusable code examples.

CSSHTMLJavaScript
0 likes · 13 min read
How to Build a Danmaku (Bullet Comment) System with HTML, CSS, and Canvas
ByteFE
ByteFE
Aug 12, 2021 · Frontend Development

How JavaScript’s Single Thread Handles Async and What startTransition Changes

Although JavaScript runs on a single thread, it can handle asynchronous operations through mechanisms like setTimeout, and React 18’s startTransition lets developers separate urgent UI updates from deferred work, improving responsiveness by scheduling non‑urgent tasks after urgent ones complete.

FrontendJavaScriptReAct
0 likes · 6 min read
How JavaScript’s Single Thread Handles Async and What startTransition Changes
Fulu Network R&D Team
Fulu Network R&D Team
Aug 10, 2021 · Frontend Development

Implementing Zero-Delay Timers in JavaScript: Alternatives to setTimeout

This article explores why the native setTimeout cannot achieve a true 0 ms delay, presents a postMessage‑based zero‑timeout implementation, and compares several asynchronous JavaScript techniques—including queueMicrotask, async/await, and MessageChannel—showing their performance advantages over setTimeout.

JavaScriptMessageChannelMicrotask
0 likes · 7 min read
Implementing Zero-Delay Timers in JavaScript: Alternatives to setTimeout
Qingyun Technology Community
Qingyun Technology Community
Aug 9, 2021 · Frontend Development

Master Debounce and Throttle: When to Use Each in JavaScript

This article explains the concepts of debounce and throttle in JavaScript, illustrates their principles and typical use cases such as button submissions, search suggestions, window resize, and drag‑and‑drop, and provides practical implementations with code examples and options for immediate execution, timestamps, and timers.

FrontendJavaScriptPerformance Optimization
0 likes · 7 min read
Master Debounce and Throttle: When to Use Each in JavaScript
ELab Team
ELab Team
Aug 8, 2021 · Frontend Development

Master RxJS: Build Your Own Observable, Observer, and Subject from Scratch

This article explains the core concepts of RxJS—including Observable, Observer, Subject, and various operators—by walking through their fundamental principles, implementation details, and practical code examples that illustrate unicast and multicast data flows in reactive JavaScript programming.

JavaScriptObserverReactive Programming
0 likes · 19 min read
Master RxJS: Build Your Own Observable, Observer, and Subject from Scratch
JavaScript
JavaScript
Aug 5, 2021 · Frontend Development

Discover Three Underrated JavaScript Frameworks You Should Try

While Angular, React, and Vue dominate the JavaScript scene, this article introduces three lesser‑known frameworks—Svelte, Ember, and Preact—explaining their unique approaches, core features, and code examples to help developers expand their toolkit.

EmberJavaScriptPreact
0 likes · 3 min read
Discover Three Underrated JavaScript Frameworks You Should Try
Java High-Performance Architecture
Java High-Performance Architecture
Aug 3, 2021 · Frontend Development

Which JavaScript Loop Wins? A Speed and Use‑Case Battle of for, forEach, map, for…in and for…of

This article compares five JavaScript iteration constructs—classic for, forEach, map, for...in and for...of—explaining their origins, semantics, performance characteristics, and appropriate use‑cases, while providing concrete code examples and guidance on breaking, continuing, and avoiding common pitfalls.

JavaScriptPerformancefor loop
0 likes · 12 min read
Which JavaScript Loop Wins? A Speed and Use‑Case Battle of for, forEach, map, for…in and for…of
Aotu Lab
Aotu Lab
Jul 29, 2021 · Frontend Development

Master Modern Development: JS Algorithms, Privacy Techniques, and Cutting‑Edge Tools

This article surveys essential front‑end knowledge, covering a comprehensive JavaScript algorithm curriculum, browser‑fingerprinting privacy concerns, collaborative design platforms like Figma, the Markdown‑to‑PPT tool Slidev, and a step‑by‑step guide to implementing the SLIC pixel‑art algorithm.

FigmaJavaScriptPrivacy
0 likes · 6 min read
Master Modern Development: JS Algorithms, Privacy Techniques, and Cutting‑Edge Tools
ELab Team
ELab Team
Jul 28, 2021 · Frontend Development

How Taro 3 Redefined Cross‑Platform Frontend Architecture

This article explains Taro 3's shift from a compile‑time heavy architecture to an interpretive runtime, detailing its JSX compilation drawbacks, the new runtime design that supports multiple frameworks, the implementation of a custom React reconciler, Web Components via Stencil, and how these changes improve cross‑platform development performance and flexibility.

FrontendJavaScriptReAct
0 likes · 27 min read
How Taro 3 Redefined Cross‑Platform Frontend Architecture
The Dominant Programmer
The Dominant Programmer
Jul 27, 2021 · Frontend Development

Getting Started with Three.js: Building a Hello World Scene

This tutorial walks through setting up a basic Three.js project, explaining core concepts like scene, camera, and renderer, and provides step‑by‑step HTML and JavaScript code to display a simple axis helper and a wireframe sphere in the browser.

3D graphicsJavaScriptWebGL
0 likes · 7 min read
Getting Started with Three.js: Building a Hello World Scene
ByteFE
ByteFE
Jul 27, 2021 · Mobile Development

Bridge Communication Between Native and Webview in Hybrid Development: Methods, Implementation, and Event Handling

This article explains from a frontend perspective how JavaScript and native code communicate in hybrid apps, covering injection and interception bridge methods, their implementation details, SDK initialization, message flow, and native event listening with code examples and compatibility considerations.

HybridJavaScriptNative
0 likes · 15 min read
Bridge Communication Between Native and Webview in Hybrid Development: Methods, Implementation, and Event Handling
Java Interview Crash Guide
Java Interview Crash Guide
Jul 18, 2021 · Backend Development

How to Build High‑Performance Large File HTTP Uploads with Resume Support

This article outlines a practical approach for implementing high‑performance large file HTTP uploads with breakpoint resume, covering server‑side C implementation, client‑side hash generation, progress tracking, chunked uploads using HTML5 File.slice, and detailed JavaScript code examples for robust file transfer.

C serverHTTP uploadJavaScript
0 likes · 14 min read
How to Build High‑Performance Large File HTTP Uploads with Resume Support
TiPaiPai Technical Team
TiPaiPai Technical Team
Jul 16, 2021 · Frontend Development

Boost Vue Form Accuracy with the v‑timely‑validate Directive

The article introduces the Vue v‑timely‑validate directive, explains how it shifts form validation from blur to change for faster error clearance, outlines form structure, validation principles, usage steps, and provides complete code examples for seamless integration into i‑form components.

DirectiveJavaScriptform-validation
0 likes · 6 min read
Boost Vue Form Accuracy with the v‑timely‑validate Directive
Taobao Frontend Technology
Taobao Frontend Technology
Jul 16, 2021 · Frontend Development

What ECMAScript Proposals Will Shape JavaScript’s Future?

This article surveys the most interesting ECMAScript proposals—ranging from new data structures like Record & Tuple to syntax enhancements such as the pipeline operator—explaining their purpose, current stage, and practical examples, while also covering the TC39 process and related background for front‑end developers.

ECMAScriptFrontendJavaScript
0 likes · 21 min read
What ECMAScript Proposals Will Shape JavaScript’s Future?
ELab Team
ELab Team
Jul 16, 2021 · Frontend Development

Mastering RxJS: Build Your Own Observable, Observer, and Subject from Scratch

This article explains the core concepts of RxJS—including Observable, Observer, Subject, and various operators—by walking through their definitions, basic usage, static creation methods, and detailed implementation with JavaScript code examples, while comparing unicast and multicast behaviors.

JavaScriptObserverReactive Programming
0 likes · 20 min read
Mastering RxJS: Build Your Own Observable, Observer, and Subject from Scratch
JavaScript
JavaScript
Jul 15, 2021 · Frontend Development

Mastering ES Modules: Static & Dynamic Imports in JavaScript

This guide explains the roles of import and export in ES modules, demonstrates static and dynamic import syntax with code examples, and advises when to use dynamic imports for large modules in modern browsers and Node.js.

Import ExportJavaScriptdynamic import
0 likes · 6 min read
Mastering ES Modules: Static & Dynamic Imports in JavaScript
WeDoctor Frontend Technology
WeDoctor Frontend Technology
Jul 14, 2021 · Frontend Development

Mastering Module Federation: From NPM Sharing to Advanced Remote Loading

This article explains how to share UI modules via NPM packages and Module Federation, compares traditional iframe approaches, dives into low‑level and high‑level concepts, demonstrates practical webpack configurations, version‑selection strategies, and runtime loading mechanisms with detailed code examples.

Frontend ArchitectureJavaScriptMicro Frontends
0 likes · 20 min read
Mastering Module Federation: From NPM Sharing to Advanced Remote Loading
Taobao Frontend Technology
Taobao Frontend Technology
Jul 14, 2021 · Frontend Development

From Emscripten to WebAssembly: A Decade of Bringing C++ to the Browser

This article traces the ten‑year evolution from Emscripten’s early C++‑to‑JavaScript compiler through asm.js to modern WebAssembly, highlighting key milestones, technical challenges, performance optimizations, and real‑world applications such as games, AutoCAD, and Google Meet, while providing code examples and installation steps.

Browser PerformanceC++Emscripten
0 likes · 17 min read
From Emscripten to WebAssembly: A Decade of Bringing C++ to the Browser
New Oriental Technology
New Oriental Technology
Jul 8, 2021 · Artificial Intelligence

Paper Detection and Perspective Correction Using OpenCV.js

This article introduces OpenCV.js, explains its basic concepts and demonstrates a complete workflow for detecting and correcting paper images in the browser using JavaScript, including matrix handling, resizing, filtering, edge detection, contour analysis, perspective transformation, and discusses challenges such as noise and incomplete edges.

Image processingJavaScriptOpenCV.js
0 likes · 10 min read
Paper Detection and Perspective Correction Using OpenCV.js
Taobao Frontend Technology
Taobao Frontend Technology
Jul 8, 2021 · Artificial Intelligence

How to Build Machine Learning Apps Directly in the Browser with JavaScript

This article explains a four‑level methodology for choosing JavaScript‑based machine‑learning tools, demonstrates practical code examples ranging from NLP with nlp.js to deep‑learning with TensorFlow.js, traditional ML with mljs, and statistical computing with stdlib, and shows how to run them entirely in the browser.

Frontend AIJavaScriptMachine Learning
0 likes · 11 min read
How to Build Machine Learning Apps Directly in the Browser with JavaScript
Wukong Talks Architecture
Wukong Talks Architecture
Jul 7, 2021 · Frontend Development

Integrating Gitalk Comment System into a Docsify Documentation Site

This article explains how to add a Gitalk-based comment feature to a Docsify‑generated documentation site, covering Gitalk fundamentals, GitHub OAuth app setup, integration steps, custom JavaScript tweaks for URL handling, common pitfalls, and a detailed appendix of configuration parameters.

DocsifyGitHub OAuthGitalk
0 likes · 12 min read
Integrating Gitalk Comment System into a Docsify Documentation Site
Programmer DD
Programmer DD
Jul 6, 2021 · Frontend Development

Why Async/Await Beats Promises: 6 Compelling Reasons for Cleaner JavaScript

This article explains the async/await syntax, compares it with traditional Promise chains, and outlines six practical advantages—including conciseness, unified error handling, clearer conditional logic, easier intermediate value handling, better stack traces, and simpler debugging—illustrated with real JavaScript code examples.

Async/AwaitError handlingJavaScript
0 likes · 9 min read
Why Async/Await Beats Promises: 6 Compelling Reasons for Cleaner JavaScript
Sohu Tech Products
Sohu Tech Products
Jun 30, 2021 · Frontend Development

Async/Await Decorators for Vue: Initialization Flag, Button Debounce with Loading Style, and First‑Paint Control

This article demonstrates three Vue decorators that use async/await to transparently manage component initialization status, add debounce and loading indicators to button clicks, and control the visibility of the component before the mounted hook finishes, with full TypeScript examples.

Async/AwaitDecoratorFrontend
0 likes · 7 min read
Async/Await Decorators for Vue: Initialization Flag, Button Debounce with Loading Style, and First‑Paint Control
WeDoctor Frontend Technology
WeDoctor Frontend Technology
Jun 30, 2021 · Frontend Development

Mastering Webpack Code Splitting: From Entry Points to Magic Comments

This article explains how to use Webpack's code splitting techniques—including multiple entry points, the SplitChunksPlugin, dynamic imports, and magic comments—to break large bundles into smaller chunks, reduce duplicate dependencies, and improve loading performance in modern frontend applications.

FrontendJavaScriptcode-splitting
0 likes · 13 min read
Mastering Webpack Code Splitting: From Entry Points to Magic Comments
ByteFE
ByteFE
Jun 30, 2021 · Frontend Development

Understanding AST and Its Application in CSS Processing with PostCSS

This article explains what an Abstract Syntax Tree (AST) is, demonstrates how JavaScript code is transformed into an AST, describes the tokenization and parsing steps used by PostCSS to generate a CSS AST, and shows how plugin mechanisms like AutoPrefixer can extend the toolchain.

ASTAutoprefixerCSS Parsing
0 likes · 9 min read
Understanding AST and Its Application in CSS Processing with PostCSS
Xianyu Technology
Xianyu Technology
Jun 29, 2021 · Frontend Development

Design and Implementation of a Cross-Platform Front-End API Solution

The article proposes a unified cross‑platform front‑end API specification and SDK that abstracts differences among WebView, mini‑programs, React Native, Flutter, and other containers, consolidating 55+ APIs for 30+ apps, reducing duplicated code, maintenance, and testing while enabling extensible, reusable functionality across Alibaba’s ecosystem.

APICross‑platformFrontend
0 likes · 8 min read
Design and Implementation of a Cross-Platform Front-End API Solution
ByteFE
ByteFE
Jun 28, 2021 · Fundamentals

How V8 Executes JavaScript: From Source Code to Optimized Machine Code

This article explains the complete lifecycle of JavaScript execution in the V8 engine, covering language fundamentals, AST generation, bytecode compilation, interpretation, just‑in‑time optimization, hidden classes, inline caches, and other performance strategies used by both browsers and Node.js.

EngineHiddenClassJIT
0 likes · 15 min read
How V8 Executes JavaScript: From Source Code to Optimized Machine Code
WeDoctor Frontend Technology
WeDoctor Frontend Technology
Jun 27, 2021 · Frontend Development

How Webpack and Rollup Implement Tree-Shaking: A Deep Dive

This article compares the tree‑shaking mechanisms of Rollup and Webpack, explains the three stages Webpack uses (UglifyJS, BabelMinify, Terser), details side‑effects handling, configuration tips, and performance benchmarks, providing practical guidance for optimizing bundle size in modern JavaScript projects.

JavaScriptUglifyJSbundle optimization
0 likes · 18 min read
How Webpack and Rollup Implement Tree-Shaking: A Deep Dive
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 24, 2021 · Frontend Development

Mastering React Hooks: From Basics to Advanced Patterns

This article explains why React Hooks were introduced, walks through the fundamentals of useState and useEffect with clear code examples, and demonstrates how Hooks simplify state management, side‑effects, and component logic compared to traditional class components, enabling more maintainable frontend development.

JavaScriptReActuseEffect
0 likes · 19 min read
Mastering React Hooks: From Basics to Advanced Patterns
Aotu Lab
Aotu Lab
Jun 24, 2021 · Frontend Development

Unlock React 18’s Power: Batching, Suspense SSR, startTransition & More

This article reviews Google’s CSS fundamentals course, dives into React 18’s automatic batching, the new Suspense SSR architecture, the startTransition API, suggests a lightweight VS Code API client, and explains the basics of building user profiles for recommendation systems.

CSSJavaScriptReAct
0 likes · 7 min read
Unlock React 18’s Power: Batching, Suspense SSR, startTransition & More
Baidu App Technology
Baidu App Technology
Jun 24, 2021 · Frontend Development

Developing ESLint and StyleLint Plugins for San‑Native Code Linting

The article explains how to design and implement ESLint and StyleLint plugins for the San‑Native framework, detailing AST generation, processor creation, rule definitions for JavaScript and CSS, configuration sharing, and how these tools provide real‑time linting feedback for developers.

ASTESLintJavaScript
0 likes · 24 min read
Developing ESLint and StyleLint Plugins for San‑Native Code Linting
ByteFE
ByteFE
Jun 24, 2021 · Fundamentals

Effective Variable and Function Naming Conventions in JavaScript

This article explains practical JavaScript naming conventions—covering camelCase, constant capitalization, acronym handling, meaningful and expressive names, verb consistency, boolean naming, and class naming—while providing numerous code examples to illustrate good and bad practices for clearer, maintainable code.

JavaScriptVariablescode readability
0 likes · 7 min read
Effective Variable and Function Naming Conventions in JavaScript
php Courses
php Courses
Jun 24, 2021 · Frontend Development

Top 5 Frontend JavaScript Frameworks in 2021

This article reviews the 2021 top five frontend JavaScript frameworks—React, Vue, Angular, Ember, and Preact—based on Stack Overflow surveys, State of JS, and NPM trends, explaining their origins, features, and adoption by major companies.

AngularEmberFrontend
0 likes · 9 min read
Top 5 Frontend JavaScript Frameworks in 2021
WeDoctor Frontend Technology
WeDoctor Frontend Technology
Jun 21, 2021 · Frontend Development

Mastering Webpack: From Custom Loaders to Powerful Plugins

This article explains how Webpack loaders work, outlines development guidelines, demonstrates synchronous, asynchronous, raw, and pitching loaders with code examples, and then guides you through creating and configuring custom plugins, covering hooks, async handling, and a practical build‑info plugin.

FrontendJavaScriptPlugin
0 likes · 21 min read
Mastering Webpack: From Custom Loaders to Powerful Plugins
ELab Team
ELab Team
Jun 20, 2021 · Frontend Development

Understanding React Synthetic Events: Architecture, Code, and Common Pitfalls

This article explains how React synthetic events emulate native DOM events, details the event system architecture, provides core registration and execution code, demonstrates mixing with native events, and discusses the benefits and known issues of the synthetic event model.

Event SystemFrontendJavaScript
0 likes · 7 min read
Understanding React Synthetic Events: Architecture, Code, and Common Pitfalls
21CTO
21CTO
Jun 19, 2021 · Frontend Development

Build a Dark Mode Switcher with HTML, CSS, and JavaScript

This step‑by‑step tutorial shows how to create a dark‑mode toggle for a web page using HTML structure, CSS styling (including dark‑mode rules), and a small JavaScript script that adds or removes the dark class on user interaction.

CSSFrontendHTML
0 likes · 9 min read
Build a Dark Mode Switcher with HTML, CSS, and JavaScript
ByteDance Web Infra
ByteDance Web Infra
Jun 18, 2021 · Frontend Development

Comprehensive Guide to SourceMap Integration, Build‑Chain Support, and Error Stack Deobfuscation for Web Applications

This article explains the complete workflow for implementing SourceMap‑based exception monitoring across web and cross‑platform systems, covering transformer, bundler, minifier, runtime support, log collection, error deobfuscation, and the limitations of SourceMap in debugging and performance contexts.

Build ToolsJavaScriptSourceMap
0 likes · 35 min read
Comprehensive Guide to SourceMap Integration, Build‑Chain Support, and Error Stack Deobfuscation for Web Applications
Laravel Tech Community
Laravel Tech Community
Jun 17, 2021 · Backend Development

Node.js 14.17.1 LTS Release Highlights and Changes

The Node.js 14.17.1 LTS release introduces updated ICU to version 69.1, aligns source‑map stack traces, refactors several core modules for safety, improves benchmark performance, and fixes numerous build and runtime issues, providing a more stable and efficient JavaScript runtime for server‑side applications.

JavaScriptLTSNode.js
0 likes · 3 min read
Node.js 14.17.1 LTS Release Highlights and Changes
WeChatFE
WeChatFE
Jun 17, 2021 · Frontend Development

How Vue 3’s Proxy‑Based Reactivity Beats Vue 2’s Object.defineProperty

This article explains Vue’s reactive system, compares Vue 2.6’s Object.defineProperty approach with Vue 3’s Proxy implementation, details how observers are defined, collected, and triggered, and shows why the asynchronous update queue improves performance and maintainability.

JavaScriptPerformanceReactivity
0 likes · 16 min read
How Vue 3’s Proxy‑Based Reactivity Beats Vue 2’s Object.defineProperty