Quantcast
Channel: Ryan Morr » Ryan
Browsing all 10 articles
Browse latest View live

Reinventing the Try/Catch Block

The try/catch block is a unique construct, both in how it works and what it is capable of. Fundamentally, it is able to isolate one or more statements to capture and suppress any runtime errors that...

View Article


Determine HTML5 Element Support in JavaScript

The dawn of HTML5 brought about a whole bunch of new elments. However, like CSS3, the specification is still relatively new and many of the browsers are slow to adopt the new elements. Elements such as...

View Article


Exploring the Eternal Abyss of Null and Undefined

When discussing primitive data types in JavaScript, most are aware of the basics, starting with String, Number, and Boolean. These primitives are fairly straightforward and function as you might...

View Article

Feature Testing CSS At-Rules

The CSS Object Model (CSSOM) is a W3C specification that defines APIs for CSS in JavaScript, encompassing all of what CSS has to offer. This has provided JavaScript a new window into CSS and all of its...

View Article

The State of Browser Detection

Despite the progress client-side scripting has made in the last decade or so, it seems some bad practices are poised to never die. With the medium transitioning into a more mobile-centric world in...

View Article


Maintain Responsiveness by Capturing Unbound Action Events

Responsiveness is critical for modern client-side applications. When a user clicks on something, they expect a result and some are not too keen on waiting. At the very least, a user’s actions should be...

View Article

Project Agnostic CSS Declaration Blocks

Low specificity is key to good fundamental CSS design. Avoiding overly specific selectors and grouping similar characteristics helps to modularize your stylesheets resulting in greater portability and...

View Article

Abstract Away the Performance Faults of querySelectorAll

With the introduction of the Selectors API in HTML5, developers finally got a native means to selecting specific nodes without the need to traverse the DOM in tedious loops. The two new methods,...

View Article


Using Mutation Observers to Watch for Element Availability

Many developers have become accustomed to using some variant of a DOM ready method to signify when they can begin to traverse and manipulate the DOM. Or, better yet, placing the scripts at the bottom...

View Article


True Hash Maps in JavaScript

Using an object literal as a simple means to storing key-value pairs is common place within JavaScript. However, an object literal is not a true hash map and therefore poses potential liabilities if...

View Article
Browsing all 10 articles
Browse latest View live