"Appearances can be deceiving Mr. Anderson" - a.k.a. short code is not always fast code
Comparing JavaScript type-checking methods, showing that elegant, short code isn't always the fastest, with performance benchmarks.
Lea Verou is a web standards expert, developer, and designer with a PhD from MIT in Human-Computer Interaction. She has worked as Product Lead at Font Awesome, helped shape the web as a member of the W3C Technical Architecture Group, and has been part of the CSS Working Group since 2012. Her open-source tools like PrismJS and Color.js are used by millions of developers worldwide. Lea is also the author of a bestselling CSS book, a frequent conference speaker, and an advocate for making technology simpler, more usable, and open for everyone.
210 articles from this blog
Comparing JavaScript type-checking methods, showing that elegant, short code isn't always the fastest, with performance benchmarks.
Learn how to use javascript: URIs in the address bar for quick debugging in browsers without a console, like IE6 or Opera.
Essential browser bugs and workarounds developers need to know when coding JavaScript without libraries.
Argues for mandatory, silent browser updates to improve web development and security, eliminating legacy browser testing.
A guide to implementing cross-browser RGBA color backgrounds with CSS and a PHP fallback script for older browsers.
A guide to detecting the current browser's CSS vendor prefix using JavaScript, addressing cross-browser compatibility issues.
A technical guide to using CSS3 border-radius for rounded corners, covering browser-specific implementations and quirks.
Extending JavaScript's Math.round, Math.ceil, and Math.floor functions to support precision parameters for decimal rounding.
A bookmarklet that detects which JavaScript libraries and their versions are used on any webpage you visit.
Learn how to detect browser support for specific CSS properties using JavaScript feature detection instead of browser sniffing.