Speaking of that ... I've got a plugin ... unreleased/undocumented at the moment ... called viewable. It gives you a percentage of the element that is viewable.
http://brandonaaron.net/jquery/plugins/viewable/test/test.html -- Brandon Aaron On 9/27/07, Guy Fraser <[EMAIL PROTECTED]> wrote: > > > Frank Tudor wrote: > > Code anticipation would score bonus points. > > While my tired brain was wondering what you meant by that, it came up > with a completely unrelated idea - we could modify/extend the lazy image > loader plugin [1] so that code blocks "below the fold" would not get > syntax highlighted until the user starts scrolling down the page. I > often end up with pages that have dozens of small code blocks with > descriptive paragraphs in between them. This would make the initial page > render more quickly and as the user scrolls down more code blocks get > syntax highlighted automagically. > > > [1] http://www.appelsiini.net/2007/9/lazy-load-images-jquery-plugin >