Enhancing Optimistically

The cutting the mustard test might be fit for applying enhanced CSS styles, but as this article shows the JS code itself that provides the enhanced functionality might not be there immediately. Fortunately Scott Jehl is UBER clever and has a solution for us.

Every so often, we come across ways to improve our more well-trodden core progressive enhancement patterns. Sometimes, we’ll utilize a new web standard to address problems we’d previously approached in a less-optimized manner, while other times we’ll make adjustments to address browser-or-network conditions that could be handled in more fault-tolerant ways. Recently, I came across an example of the latter, and this post will document a small but meaningful way I worked to accommodate it.

An excerpt from Enhancing Optimistically

View original article

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.