use onload_delay to set waiting time when BLOCK

this PR is already merged in branch onload_delay
so copy it here