Archive for September, 2007
Lazy Load Images with Prototype
Download lazyload.js.
Requires prototype.js version 1.6.0_rc0 or above.
Element.addMethods({
lazyload: function(element, options)
{
/**
What does it do?
It delays loading of images in (long) pages. Images below the fold (far down in the
page) won’t be loaded before the user scrolls down. This is exact opposite of image
preloading. With long pages containing heavy image content end user result is the
same. Page feels [...]
dispatch.fcgi or, How to get Ruby on Rails to work
I host all of my website with Dreamhost. I think they’re fantastic — a little slow, perhaps — but they’re full of features, and let you install all kinds of goodness on their servers.
Recently, however, I have been struggling to get Ruby on Rails working on their domains. I have been fighting an uphill battle [...]