Using `setTimeout` to speed up `window.onload`
Explains how using setTimeout with a 0ms delay can speed up window.onload by preventing JavaScript from blocking the event.
Explains how using setTimeout with a 0ms delay can speed up window.onload by preventing JavaScript from blocking the event.
A developer shares key principles for writing testable JavaScript code, focusing on avoiding singletons to prevent state pollution in tests.
A developer automates game idea generation by creating a tool that randomly combines words to produce 50 creative, one-line game concepts.
A guide to creating a constructor-safe spying function for unit testing JavaScript code, with examples and implementation details.
Explains the HTML5 `document.head` property, its benefits over traditional DOM access, and provides polyfill code for cross-browser support.
A tutorial on implementing the Showdown/PageDown Markdown parser in JavaScript, with examples for both plain JS and jQuery integration.
Analysis of Steve Jobs' open letter on Apple's decision not to support Flash on mobile devices, discussing proprietary standards and HTML5.
Analysis of a deceptive Facebook app that tricks users into running malicious JavaScript to spam friends.
A developer's experience using Opera browser with Oracle Enterprise Manager, highlighting its speed and tab management benefits.
Explores the size threshold for using inline scripts/styles vs. external files, considering HTTP overhead, caching, and performance trade-offs.
Explains how to use JavaScript's debugger statement to inspect private variables in closure-based modules, improving debugging for patterns like the Module Pattern.
Explains how JavaScript converts objects to primitives using toString and valueOf methods, covering basics, edge cases, and performance.
A developer creates a Python library to mimic JavaScript's flexible object syntax, allowing dot notation and dynamic property access.
A presentation overview on writing efficient, high-quality JavaScript code, aimed at developers with a Python background.
An in-depth guide to the JavaScript Module Pattern, covering basics, advanced techniques, and practical examples for clean code.
Analyzes the performance difference between JavaScript's strict (===) and loose (==) equality operators, finding minimal practical impact.
Explores the minimum delay for JavaScript timers like setTimeout, revealing browser-specific limits and implications for accurate timing.
Explains the dangers of improper JavaScript global variables and introduces a tool called badglobals.js to detect them during runtime analysis.
Explains JavaScript's function-level scoping and the hoisting of variable and function declarations, using examples to clarify common pitfalls.
A tutorial on using jQuery to find and replace specific text patterns within the DOM, useful for content editing workflows.