JavaScript

Mousetrap Usage Guide

This article introduces the usage of Mousetrap, including its advantages, implementation details, and relevant resources. These steps can help improve efficiency when using Mousetrap.

Nov 19, 2023

Using keyboard.lock

Using navigator.keyboard.lock to bypass browser limitations on capturing certain hotkeys (like Command+T) in web applications, with notes on browser support and usage conditions.

Nov 12, 2023

Browser userAgent

A quick tour of working with the browser userAgent string—from where to access it, to helpful tooling, limitations, and why multiple browser names show up.

Sep 24, 2023

AntiDebug Implementation

This article introduces AntiDebug implementation, including its advantages, implementation details, and related resources to improve efficiency.

Jun 24, 2023

Web Page Crashes Caused by File Downloads

This article introduces web page crashes caused by file downloads, including usage scenarios and implementation details to improve efficiency in handling file download-related crashes.

Dec 25, 2022

Handling Cancel Events for Input File Upload

This article introduces how to handle cancel events for input file upload, including advantages, implementation details, and related resources to help developers implement cancel event detection for file uploads more effectively.

Dec 7, 2022

Deriving Public Keys from Private Keys in JavaScript

This article provides an introduction to deriving public keys from private keys in JavaScript, including the advantages, implementation details, and relevant resources. These steps can help developers improve their efficiency in implementing public key derivation from private keys in JavaScript.

Mar 6, 2022

Composition Events in JavaScript

This post explains composition events in JavaScript, including use cases, behavior, and references to help you understand input handling.

Feb 3, 2022

Using Web Workers

An introduction to using Web Workers, including benefits, implementation details, and references to help you use Web Workers more efficiently.

Jan 31, 2022

Zip Download Fails to Unzip in Frontend — Fix

Binary download succeeded but unzip failed; Postman worked. Root cause and fix: set XHR responseType to 'blob'.

Aug 8, 2021

JavaScript arguments Object

This article provides an introduction to JavaScript arguments object, including its limitations, comparison with rest parameters, and migration strategies for modern JavaScript development.

Jul 24, 2021

When tsc Compiled to ES3

Postmortem of a production build that emitted ES3 JavaScript, why it happened, and how we fixed our component library setup.

Jul 24, 2021

Parsing ZIP File Uploads

How to handle ZIP file uploads: reading ZIPs on the frontend, writing on the backend, and practical parsing tips.

Jul 11, 2021

Developing Alfred JS SDK

This article introduces developing Alfred JS SDK, including usage scenarios and implementation details, to improve efficiency in Alfred JS SDK development.

Jun 27, 2021

The == Operator in JavaScript

This post explains the JavaScript == operator, including type coercion rules and examples.

Apr 18, 2021

Install v8-debug

Steps for installing the V8 debug shell via jsvu so you can inspect bytecode and VM internals.

Apr 11, 2021

Chained Assignment in JavaScript

Breaks down a tricky chained assignment puzzle, reviews operator precedence, and demonstrates how JavaScript evaluates right-to-left assignments.

Mar 25, 2021

JavaScript Prototype Chain Basics

This post summarizes the JavaScript prototype chain, its key concepts, and references to help you understand prototype-based inheritance.

Mar 24, 2021

Commonly Mistaken Export Statements

This article introduces commonly mistaken export statements, including usage scenarios and implementation details, to improve efficiency with export statements.

Mar 17, 2021

Proxy vs. Reflect in JavaScript

Quick primer on JavaScript metaprogramming concepts—Proxy and Reflect—with background, practical examples, and references.

Mar 16, 2021

JS下的Promise

This article provides an introduction to Promises in JavaScript, covering their advantages, implementation details, and related resources. These insights can help improve efficiency when working with Promises in JS.

Mar 7, 2021

Confusing splice and slice

This article introduces the confusing splice and slice functions, including usage scenarios and implementation details, to improve efficiency with splice and slice.

Mar 1, 2021

Array.join vs Template strings vs String concatenation

This article introduces the comparison between Array.join, Template strings, and String concatenation, including their advantages, implementation details, and related resources to improve efficiency.

Feb 28, 2021

window.opener

A practical intro to window.opener: what it is, when it exists, how noopener affects process isolation, and trade-offs.

Feb 27, 2021

Maximum call stack size exceeded in JS

This post explains the 'Maximum call stack size exceeded' error in JS, including stack basics, limits, and debugging tips.

Feb 24, 2021