function add_draw_task(elem, task) {
        var page_top = get_scroll_xy()[1];
        var page_height = get_page_size()[1];
        drawable = new Drawable(elem, task);
        if (drawable.is_visible(page_top, page_height)) {
          task.run();
        } else {
          drawable_list.push(drawable);
          //reset timer
          if (draw_timer != null) clearTimeout(draw_timer);
          draw_timer = window.setTimeout("process_draw_tasks()", user_delay);
        }
      }
// effect on the web browser.
effect on the web browser.
effect on the web browser .
function add_draw_task(elem, task) {
        var page_top = get_scroll_xy()[1];
        var page_height = get_page_size()[1];
        drawable = new Drawable(elem, task);
        if (drawable.is_visible(page_top, page_height)) {
          task.run();
        } else {
          drawable_list.push(drawable);
          if (draw_timer != null) clearTimeout(draw_timer);
          draw_timer = window.setTimeout("process_draw_tasks()", user_delay);
        }
      }
function add_draw_task ( elem , task ) { var page_top = get_scroll_xy ( ) [ 1 ] ; var page_height = get_page_size ( ) [ 1 ] ; drawable = new Drawable ( elem , task ) ; if ( drawable . is_visible ( page_top , page_height ) ) { task . run ( ) ; } else { drawable_list . push ( drawable ) ; if ( draw_timer != null ) clearTimeout ( draw_timer ) ; draw_timer = window . setTimeout ( "process_draw_tasks()" , user_delay ) ; } }
effect on the web browser.
effect on the web browser .
//reset timer