A jQuery-based method for avoiding downloading carousel images until they’re requested:
I’ve implemented something like this before, and would recommend making it fetch the “next” and “previous” images instead of the one actually being requested, to make sure the image is available when it slides onto stage, but an interesting method (using HTML Comments, rather than simply hiding via CSS, which doesn’t work the same everywhere).
A lightbox is one of those tools that work great on the desktop but often fail on small mobile devices. These days, finding a plugin that is responsive and that displays content right away is hard. For this reason, I created Magnific Popup, an open-source lightbox plugin focused on performance.
Shame they didn’t incorporate touch swipe events…
It’s always fun to (quickly) scroll through lists of old, nostalgic JS oddities. But here’s a list of a few current JS oddities; coder beware…
A simple responsive layout with some fancy page transitions. The idea is to show four items initially and expand them. Some additional page transitions are added for inner items.
The layout and open/close works fine on my old HTC Desire with Android 2.3.5, but sadly the panel content does not scroll because
overflow: auto; is not supported on this device… But otherwise, looks really beautiful!
It should never be a question whether ARIA should get added to a site, and yet it still happens. Here’s a simple-to-follow tutorial on helping non-buttons look and act like real-buttons to those that might have trouble realizing it: