When you don't want to perform an action until the browser has downloaded all appropriate images.
It's far too easy to let your JS code pollute the global namespace. Here are two methods for keeping your code local.
A simple way to give the appearance of a full-screen looping slideshow with crossfading animation.
When you have access to the code inside an iFrame, you can manipulate its DOM that can lead to style changes.
When you can communicate with the code inside an iFrame, you can make any change you want to the code within that iFrame.
Turbolinks is a great idea in theory, but it comes with enough problems to offset its benefits.
This builds on a previous example and brings some movement to our dots!
The wide world of canvas is open-ended. Here's a fun example to dig in and learn some of the basics of HTML5 canvas.
You can add JavaScript and CSS files to your master page if you want to overwrite some default styles or add some functionality via a new script.