Victa/curtain.js — pull request #6 by jordanj77 (2012-03-12 23:56:11+00:00)
Title: Bugfix/nextAll

Currently, a large number of slides causes crippling performance in Chrome (and I think IE).

It seems that Chrome can't handle a lot of stacked (z-index) slides that are "visible" (display: block).

I have added a limit to the nextAll selector that sets all the next slides to display: block. Now, it only acts on the next 2 slides.

Additionally, I have modified curtain.css to hide all but the first 2 slides by default.

These fixes took my project from unusable to lightning fast in Chrome and IE9, and also improved load time and performance in Firefox and Safari.