Using Server-Sent Events for Real-Time Data Push
Modern web applications often require real-time updates from server to client. A common approach is WebSockets, but another mechanism—Server-Sent Events (SSE)—can serve this purpose efficiently using standard HTTP. SSE relies on the Content-Type: text/event-stream header defined in HTML5.
Server-Sent Events Overveiw
SSE provides a lightweight u ...
Posted on Tue, 08 Sep 2026 16:46:05 +0000 by Perryl7
Intercepting Programmatic Input Value Changes in JavaScript
Programmatically assigning a new value to an <input> element bypasses the native change event listener. This occurs because the browser's implementation of onchange enforces strict activation criteria. Specifically, the event only fires when three conditions are met sequentially: the element receives focus, its content is modified, and it ...
Posted on Mon, 07 Sep 2026 16:28:34 +0000 by Dollar
Understanding and Implementing Web Workers in JavaScript Applications
Web Workers
JavaScript is a single-threaded language, and when browsers need to perform computationally intensive tasks, other operations on the page can become unresponsive due to the main thread being occupied. This creates a poor user experience. For example, when displaying large BIM models in the browser, the frontend needs to fetch and pa ...
Posted on Mon, 07 Sep 2026 16:17:54 +0000 by doctor_james
Creating Floating Heart Animations with Canvas and Bezier Curves
Implementing a floating heart animation for a "like" feature requires moving a heart image along a Bezier curve trajectory while gradually fading it out. The core challenge lies in calculating a series of points along the Bezier curve.
Calculating Bezier Curve Points
The mathematical formula for an n-order Bezier curve allows us to co ...
Posted on Sun, 06 Sep 2026 16:55:44 +0000 by AmiraSan
Display Table and Minimum Frogs Algorithm Problems
Display Table
Given an array of orders where each element contains a customer name, table number, and food item, return a display table showing how many of each dish was ordered at each table.
The table should have "Table" as the first column header, followed by alphabetical sorted food item names. Each row represents a table with its ...
Posted on Sun, 06 Sep 2026 16:36:50 +0000 by joebarker99
JavaScript Hoisting Mechanics and Scope Boundaries: Declarations, Expressions, and Block Contexts
JavaScript engines process source code in two distinct phases: compilation and execution. During the compilation phase, the engine scans for declarations and registers them in their respective lexical environments. This behavior, commonly known as hoisting, allows identifeirs to be referenced before their physical location in the codebase.
Vari ...
Posted on Sun, 06 Sep 2026 16:06:58 +0000 by lauriedunsire
Comprehensive JavaScript Fundamentals for Frontend Interviews
Computer Networking Interview Questions - Essential for Frontend Roles
CSS Interview Summary - Core Concepts - Study Guide
Vue Interview Questions - Core Concepts - Component Details - Vue Ecosystem - Source Code Analysis
This article covers JavaScript interview questions with both questions and answers. For deeper insights, refer to my detai ...
Posted on Sat, 05 Sep 2026 16:21:35 +0000 by bawla
Turning a Live2D HTML Character into a Desktop Executable with NW.js
This project converts an interactive Live2D character widget originally designed for web pages into a standalone desktop application using NW.js. The character can walk, talk, and respond to mouse interactions, making it a cute desktop copmanion.
Original HTML Embedding
The Live2D widget is typically embedded in a webpage with a few lines of HT ...
Posted on Fri, 04 Sep 2026 16:55:17 +0000 by shibbi3
Turn MyBatis Log Lines into Runnable SQL with a Single-Page Web Tool
What the tool does
Paste raw MyBatis log fragments that contain both the Preparing: line and the Parameters: line, and the page will stitch the placeholders and values together into a ready-to-run SQL statement. The tool is a single HTML file that works entirely in the browser—no server, no installlation.
Quick start
Copy the HTML source below ...
Posted on Fri, 04 Sep 2026 16:26:41 +0000 by Carlo Gambino
Fixing Open Redirection Vulnerabilities Detected by Fortify
An open redirection vulnerability occurs when an application accepts a user-supplied URL and reidrects the user to it without proper validation. This commonly happens when using window.location.href or similar client-side redirection mechanisms, potentially allowing attackers to craft malicious links that appear trustworthy.
To address this iss ...
Posted on Fri, 04 Sep 2026 16:04:00 +0000 by khurramijaz