Tagged articles
55 articles
Page 1 of 1
FunTester
FunTester
Nov 4, 2025 · Frontend Development

Mastering DOM Events: From Basics to Advanced Event Flow

This article explains the fundamentals of DOM events, compares three ways to attach listeners, shows how to add and remove handlers, details event bubbling and capturing phases, and provides practical tips and common pitfalls for robust frontend interaction design.

DOMEvent PropagationJavaScript
0 likes · 8 min read
Mastering DOM Events: From Basics to Advanced Event Flow
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 12, 2025 · Frontend Development

Understanding Browser Rendering, Event Loop, and Techniques to Avoid Page Jank When Adding Massive DOM Elements

This article explains the underlying browser mechanisms that cause page jank when creating millions of DOM elements, analyzes the event loop, rendering pipeline, macro‑ and micro‑tasks, and presents practical solutions such as setTimeout, requestAnimationFrame, MessageChannel, and requestIdleCallback to keep the UI responsive.

BrowserDOMJavaScript
0 likes · 16 min read
Understanding Browser Rendering, Event Loop, and Techniques to Avoid Page Jank When Adding Massive DOM Elements
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Feb 6, 2025 · Frontend Development

Chrome Introduces the New moveBefore DOM API

Chrome 133+ adds the moveBefore method, a new DOM operation that moves elements while preserving their state, offering developers a simpler alternative to removeChild/insertBefore and improving scenarios like video playback, focus retention, and animation continuity.

ChromeDOMJavaScript
0 likes · 7 min read
Chrome Introduces the New moveBefore DOM API
21CTO
21CTO
Jun 12, 2024 · Backend Development

What’s New in PHP 8.4? Explore Enhanced String Functions, HTML5 DOM, and More

PHP 8.4, slated for a November 2024 release, introduces enhanced multibyte string functions, HTML5‑aware DOM extensions, stronger password hashing, property hooks, parenthesis‑free method calls, JIT configuration changes, and deprecates implicit nullable types, offering developers a more powerful and secure platform.

8.4Backend DevelopmentDOM
0 likes · 6 min read
What’s New in PHP 8.4? Explore Enhanced String Functions, HTML5 DOM, and More
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 8, 2023 · Frontend Development

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

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

Browser APIsDOMJavaScript
0 likes · 11 min read
Advanced JavaScript Methods: getBoundingClientRect, IntersectionObserver, createNodeIterator, getComputedStyle, requestAnimationFrame
政采云技术
政采云技术
Aug 2, 2023 · Frontend Development

Encapsulating DOM Exposure: From Scroll Listener to IntersectionObserver

This article describes how to abstract and improve DOM exposure tracking by first using a scroll listener with getBoundingClientRect and then refactoring to a more robust IntersectionObserver implementation, including code examples, configuration details, and compatibility considerations.

DOMExposureIntersectionObserver
0 likes · 8 min read
Encapsulating DOM Exposure: From Scroll Listener to IntersectionObserver
php Courses
php Courses
Jul 28, 2023 · Backend Development

Parsing and Generating XML Files in PHP

This article explains how to use PHP's built-in XML extension to parse XML files into a DOM tree and to generate XML documents programmatically, providing step‑by‑step code examples for loading, traversing, creating elements, setting attributes, and saving the resulting XML files.

DOMGenerationPHP
0 likes · 4 min read
Parsing and Generating XML Files in PHP
DaTaobao Tech
DaTaobao Tech
Jul 14, 2022 · Frontend Development

Implementing a Simple HTML Parser in JavaScript

The article walks through building a simple JavaScript HTML parser by explaining browser parsing basics, using regular expressions to detect tags, managing a stack to match opening and closing elements, creating element and text node objects, and outlining code snippets while noting omitted features like script and style handling.

DOMHTML parserJavaScript
0 likes · 9 min read
Implementing a Simple HTML Parser in JavaScript
Taobao Frontend Technology
Taobao Frontend Technology
Apr 21, 2022 · Frontend Development

Build a Simple HTML Parser in JavaScript: Step-by-Step Guide

This article explains how to create a basic HTML parser in JavaScript by using regular expressions and a stack to convert an HTML string into a tree of nodes, complete with code examples, initialization steps, and handling of opening, closing, and self‑closing tags.

DOMHTML parserJavaScript
0 likes · 9 min read
Build a Simple HTML Parser in JavaScript: Step-by-Step Guide
Baidu Geek Talk
Baidu Geek Talk
Mar 21, 2022 · Frontend Development

How WebKit Parses HTML: Decoding, Tokenization, and DOM Tree Construction

The article details WebKit’s rendering pipeline in WKWebView, describing how the network process streams HTML bytes to the rendering process, which decodes them via TextResourceDecoder, tokenizes the characters with HTMLTokenizer’s state machine, and constructs an efficient DOM tree using HTMLTreeBuilder and queued insertion tasks.

DOMWebKitbrowser engine
0 likes · 33 min read
How WebKit Parses HTML: Decoding, Tokenization, and DOM Tree Construction
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
21CTO
21CTO
Jun 13, 2021 · Frontend Development

Add a One‑Click Copy‑to‑Clipboard Button with JavaScript

This guide shows how to create a simple HTML page with a button that copies paragraph text to the system clipboard using the modern Clipboard API, including full code examples and explanations for both copy and cut operations.

Clipboard APIDOMHTML
0 likes · 5 min read
Add a One‑Click Copy‑to‑Clipboard Button with JavaScript
ELab Team
ELab Team
Mar 10, 2021 · Frontend Development

How Browsers Render Pages: From HTML Parsing to GPU Composition

This article walks through the complete browser rendering pipeline—HTML parsing, CSS rule construction, layout, paint, layer creation, rasterization, and compositing—explaining each step, the underlying data structures, performance implications, and practical tips for optimizing rendering in modern web applications.

CSSOMDOMPerformance Optimization
0 likes · 23 min read
How Browsers Render Pages: From HTML Parsing to GPU Composition
Practical DevOps Architecture
Practical DevOps Architecture
Nov 16, 2020 · Frontend Development

Introduction to JavaScript: Basics, Inclusion Methods, Selectors, Events, and DOM Manipulation

This article introduces JavaScript fundamentals, explains three ways to include scripts, demonstrates simple click events, shows how to use selectors, outlines event handling, and covers DOM manipulation techniques such as modifying content, styles, and classes, including retrieving computed styles.

CSS selectorsDOMEvents
0 likes · 5 min read
Introduction to JavaScript: Basics, Inclusion Methods, Selectors, Events, and DOM Manipulation
php Courses
php Courses
Nov 12, 2020 · Frontend Development

Understanding Node, Element, NodeList, and HTMLCollection in the DOM

This article explains the differences between Node and Element in the DOM, clarifies the roles of NodeList and HTMLCollection, demonstrates how to inspect child nodes with code examples, and provides practical tips for handling these objects in frontend development.

DOMElementJavaScript
0 likes · 4 min read
Understanding Node, Element, NodeList, and HTMLCollection in the DOM
Sohu Tech Products
Sohu Tech Products
Nov 4, 2020 · Frontend Development

24 Modern ES6 Code Snippets to Solve Practical JavaScript Problems

This article presents a curated collection of 24 practical ES6 code snippets that address common front‑end challenges such as DOM manipulation, event handling, network requests, timing utilities, and file system operations, providing ready‑to‑use solutions for developers.

DOMcode snippetses6
0 likes · 12 min read
24 Modern ES6 Code Snippets to Solve Practical JavaScript Problems
Open Source Tech Hub
Open Source Tech Hub
Jul 9, 2020 · Frontend Development

Master JavaScript & jQuery Looping: From for() to $.each() Explained

This guide clarifies the differences between native JavaScript and jQuery iteration functions, shows how to convert between DOM and jQuery objects, and provides concrete code examples for each looping method—including for, forEach, every, some, map, filter, for‑in, each, $.map, $.grep, $.inArray and $.filter—so developers can choose the right tool without errors.

/loopDOMJavaScript
0 likes · 7 min read
Master JavaScript & jQuery Looping: From for() to $.each() Explained
WecTeam
WecTeam
Jan 9, 2020 · Frontend Development

How to Build a Switchable DOM & Canvas Web Gomoku Game from Scratch

This tutorial walks through creating a lightweight web Gomoku game using JavaScript, detailing both a plain‑DOM renderer and a Canvas renderer, their interchangeable architecture, and core features like move handling, undo/redo, win detection, and board resetting.

DOMGomokuJavaScript
0 likes · 21 min read
How to Build a Switchable DOM & Canvas Web Gomoku Game from Scratch
Qunar Tech Salon
Qunar Tech Salon
Nov 12, 2019 · Frontend Development

A Comprehensive Overview of HTML Evolution, Modules, and Modern Web Standards

This article traces the history of HTML from its SGML roots through the browser wars, explains the various HTML modules and document types, and details modern HTML5 features, semantic tags, multimedia support, custom elements, and performance‑optimisation techniques such as preload, prefetch, and async scripts.

DOMHTMLHTML5
0 likes · 31 min read
A Comprehensive Overview of HTML Evolution, Modules, and Modern Web Standards
AutoHome Frontend
AutoHome Frontend
Aug 1, 2019 · Frontend Development

8 Hidden DOM Features You Didn’t Know Exist (And How to Use Them)

This article reveals eight lesser‑known DOM and Web API features—such as addEventListener options, smooth scrollTo, optional timer arguments, defaultChecked, normalize/wholeText, insertAdjacent methods, event.detail, and scrollHeight/scrollWidth—explaining their purpose, browser support, and providing practical code examples.

DOMJavaScriptWeb API
0 likes · 17 min read
8 Hidden DOM Features You Didn’t Know Exist (And How to Use Them)
360 Tech Engineering
360 Tech Engineering
Jul 26, 2019 · Frontend Development

Properties and Methods That Trigger Layout Reflow in Browsers

The article lists DOM properties and methods—such as element measurements, scrolling APIs, focus calls, getComputedStyle, and various window and document attributes—that cause browsers to synchronously recalculate styles and layout, explains why they are performance bottlenecks, and offers practical mitigation techniques.

BrowserDOMfrontend
0 likes · 8 min read
Properties and Methods That Trigger Layout Reflow in Browsers
360 Tech Engineering
360 Tech Engineering
Feb 13, 2019 · Frontend Development

How to Optimize the Critical Rendering Path

This article explains how to improve web page rendering speed by reducing the number of critical resources, shortening the critical path length, and minimizing critical bytes through DOM, CSSOM, and JavaScript optimizations, including practical code examples and performance measurements.

DOMFrontend OptimizationWeb Performance
0 likes · 12 min read
How to Optimize the Critical Rendering Path
Java Captain
Java Captain
Apr 16, 2018 · Fundamentals

XML Parsing in Java: DOM, SAX, JDOM, and DOM4J Comparison and Examples

This article provides a comprehensive guide to parsing XML in Java, covering the official DOM and SAX methods, third‑party JDOM and DOM4J libraries, detailed code examples for each approach, and a performance and feature comparison to help developers choose the most suitable parser.

DOMDOM4JJDOM
0 likes · 20 min read
XML Parsing in Java: DOM, SAX, JDOM, and DOM4J Comparison and Examples
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 6, 2017 · Frontend Development

Mastering DOM Traversal and Sorting: Recursive & Non‑Recursive JavaScript Algorithms

This article explores how to implement recursive and non‑recursive DOM tree searches, hash‑based lookups, and several classic sorting algorithms—including quick sort and merge sort—in JavaScript, discussing their time and space complexities, stability considerations, and practical performance tips for front‑end development.

DOMRecursionSorting
0 likes · 20 min read
Mastering DOM Traversal and Sorting: Recursive & Non‑Recursive JavaScript Algorithms
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 16, 2017 · Frontend Development

Master Drag-and-Drop in JavaScript: Three Ways to Build a Reusable Drag Object

This article walks you through three approaches to implement drag-and-drop in JavaScript—plain code, a native object wrapper, and a jQuery extension—covering essential concepts like transform compatibility, event handling, position calculations, and object-oriented encapsulation, with detailed code examples and visual diagrams.

DOMDrag-and-DropObject-Oriented
0 likes · 12 min read
Master Drag-and-Drop in JavaScript: Three Ways to Build a Reusable Drag Object
Qunar Tech Salon
Qunar Tech Salon
Feb 6, 2017 · Frontend Development

Front‑End Performance Optimization: Best Practices and Techniques

This article presents a comprehensive guide to front‑end performance optimization, covering how to prioritize bottlenecks, use debounce/throttle, reduce DOM reflows, optimize rendering, leverage requestAnimationFrame and Web Workers, and apply efficient CSS and script loading strategies, all illustrated with practical code examples.

CSSDOMJavaScript
0 likes · 16 min read
Front‑End Performance Optimization: Best Practices and Techniques
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jan 20, 2017 · Frontend Development

How Browsers Turn URLs into Web Pages: Inside Rendering Engines and Parsing

From typing a URL to seeing a page, browsers perform a complex series of steps—including network requests, HTML and CSS parsing, DOM and render tree construction, layout, painting, and script execution—while handling errors and optimizations across components such as the UI, engine, networking, JavaScript interpreter, and storage.

BrowserDOMRendering Engine
0 likes · 36 min read
How Browsers Turn URLs into Web Pages: Inside Rendering Engines and Parsing
JavaScript
JavaScript
Oct 2, 2016 · Frontend Development

Essential JavaScript DOM API Cheat Sheet: From Element Selection to Ajax

This article provides a comprehensive, English‑language reference of common JavaScript DOM APIs—including element selection, class manipulation, node operations, attribute handling, content updates, CSS styling, size calculations, event binding, DOM ready detection, context binding, whitespace trimming, Ajax requests, JSON parsing, and node traversal—complete with code examples for each feature.

DOMJavaScriptWeb Development
0 likes · 11 min read
Essential JavaScript DOM API Cheat Sheet: From Element Selection to Ajax
Java High-Performance Architecture
Java High-Performance Architecture
Dec 8, 2015 · Frontend Development

How Repaints and Reflows Impact Web Performance—and How to Minimize Them

This article explains what browser repaints and reflows are, which operations trigger them, and provides practical techniques—such as batching style changes, using absolute positioning, leveraging document fragments, temporarily hiding elements, and caching values—to dramatically reduce their performance cost.

DOMfrontendoptimization
0 likes · 5 min read
How Repaints and Reflows Impact Web Performance—and How to Minimize Them
Baidu Tech Salon
Baidu Tech Salon
May 21, 2014 · Frontend Development

Show‑off JavaScript Techniques to Impress Others

The article showcases a suite of flashy JavaScript tricks—alternative anonymous‑function syntaxes, the void operator for undefined, logical‑operator conditionals, optional semicolons, early ES6 features, AMD wrapping, the Function constructor, and native DOM selectors—while warning that some shortcuts hurt readability and should be used sparingly.

AMDAnonymous FunctionsDOM
0 likes · 6 min read
Show‑off JavaScript Techniques to Impress Others