Code Web Design by Simplu27 is licensed under CC0
Turbolinks Caching with JavaScript Modified Dom
Don’t want duplicated markup in your document? There are a few ways to fix that. We’ll go through how to prepare your document for caching with Turbolinks.
Modern Javascript and Rails
Want to write ES6 and/or use JSX or any of a vast array of modern Javascript tools in your Rails app? What about also writing your Javascript tests with the same tools? It’s easy with Browserify-rails and Teaspoon!
Mocking HTML5 API's Using PhantomJS Extensions
Recently one of our projects called for using the browser’s Geolocation API. We were excited about this project. However, we had an immediate concern about how to test a feature that interacts with one of the browser’s built in APIs.
Pick a Side
I noticed a strange JavaScript loading fallback today. Often simplicity can trump having fallbacks.
Walken on Rails
Our new screencast series features narration by Christopher Walken.
CoffeeScript Routing, part deux
Adding named parameters to the CoffeeScript router
Standalone Javascript Routing
A recent project has us using spine.js as well as a few other JavaScript libraries. Though spine.js comes with its own routing, it conflicts with pjax. The solution was to roll our own.
Quick Win: JavaScript async
Do you know the difference between defer and async in your script tags? You will very soon.
Quick Win: Zendesk
Now, I don’t know anything about ZenDesk, but I know a JS snippet when I see it. And I also know I can make it better. Here’s my quick win of the day:
Clever Background Changes
Our backgrounds change, but they’re not random. We’re more clever than that. Let me explain…